Hi,
I've made a calendar that uses popups - eg you click on the date and that opens a new smaller window that lets you enter information.
I want to make it so if the user closes the popup with the X at the top right rather than clicking on my Finished button which does other stuff like email the organiser, the parent window redirects to a warning page telling you that is what has happened.
So far I've got
<body onunload="parent.window.open('warning.asp');">
But this doesn't seem to be working. I know there are some limitations on using window.open in conjunction with unload ie to stop dodgy sites effectively hijacking a user's PC with popups that they can't get rid of, but is there a decent way round this?
Thanks very much
Ed
I've made a calendar that uses popups - eg you click on the date and that opens a new smaller window that lets you enter information.
I want to make it so if the user closes the popup with the X at the top right rather than clicking on my Finished button which does other stuff like email the organiser, the parent window redirects to a warning page telling you that is what has happened.
So far I've got
<body onunload="parent.window.open('warning.asp');">
But this doesn't seem to be working. I know there are some limitations on using window.open in conjunction with unload ie to stop dodgy sites effectively hijacking a user's PC with popups that they can't get rid of, but is there a decent way round this?
Thanks very much
Ed