Forum Moderators: open
My script will open a new window and set the focus there. Wondering to myself as I ramble...will the browser render the HTML that follows the script that bounces out of the page, or will it executed the javascript as in encounters it in the html stream? Hmmm, off to find out.
Thanks,
Ross
var gotoURL='Stop'
function openWindowNoNav() {
if (gotoURL != 'Stop') {
popupWin = window.open(gotoURL,'alphonse', 'menubar=0,scrollbars=1,location=0,
toolbar=0,resizable=1,status=1,
width='+(screen.width * .9)+',height='+(screen.height * .9)+',left=40,top=40')
popupWin.focus()
}
openWindowNoNav gets called from the onload for the body. gotoURL gets set to something meaningful by the Page.RegisterStartupScript, otheerwise it halts the window.open. Cludgey to say the least. But it works. Improvement ideas most welcome.