T
tshad
I have a couple of windows I am opening from my .aspx window and want the
child windows to close when the browser closes or I change pages.
I have the following to open the window:
function OpenLogoPreviewWindow()
{
window.open('logoDisplay.htm','myWindow','menubar=no,toolbar=no,directories=no,resizable=no,scrollbars=no,location=no,status=no');}And in my Page_Load routine I have the following to add to my body tag: myBody.attributes.Add("onUnload","myWindow.close()")And when I do a view source the body tag shows as:<body id="myBody" onUnload="myWindow.close()">But the window stays open when I go to a new page of close the window. Ialso tried to set a timer to close the window but it won't close either.Is this something from Asp.Net that is stopping this?ThanksTom
child windows to close when the browser closes or I change pages.
I have the following to open the window:
function OpenLogoPreviewWindow()
{
window.open('logoDisplay.htm','myWindow','menubar=no,toolbar=no,directories=no,resizable=no,scrollbars=no,location=no,status=no');}And in my Page_Load routine I have the following to add to my body tag: myBody.attributes.Add("onUnload","myWindow.close()")And when I do a view source the body tag shows as:<body id="myBody" onUnload="myWindow.close()">But the window stays open when I go to a new page of close the window. Ialso tried to set a timer to close the window but it won't close either.Is this something from Asp.Net that is stopping this?ThanksTom