Sounds easy enough. Only I cant get it to work with the following code inside a .js file: var bottomToolbar = []; bottomToolbar.push({ text: FR.T('Help'), handler:function(){ document.location.href = 'http://example.com/help.html'; }, icon: FR.baseURL+'/images/page_white_go.gif', cls: 'x-btn-text-icon' }); Code (markup): Does anyone know how I can modify this to make example.com/help.html open in a new window when the button is clicked? Right now it opens in the same window. Thanks
<script type="text/javascript"> function OpenWindow() { windowHandle = window.open('http://www.google.com','Google','width=500,height=500,location=yes'); windowHandle.focus(); } </script> <form> <input type="button" value="Open Window" onClick="OpenWindow()"> </form> Code (markup): Instead of using document.location, add a function witch will open a new window