Hi
I have the following code which launches a pop up using the onunload event. THing is if I simply want an alert to display it works fine but if I want to create a pop up the pop up never opens.
So this works:
<script language="JavaScript">
function closing(){
alert('hello');
}
window.onunload = closing;
</script>
But this does not:
<script language="JavaScript">
function closing(){
window.open('}
window.onunload = closing;
</script>
I have the following code which launches a pop up using the onunload event. THing is if I simply want an alert to display it works fine but if I want to create a pop up the pop up never opens.
So this works:
<script language="JavaScript">
function closing(){
alert('hello');
}
window.onunload = closing;
</script>
But this does not:
<script language="JavaScript">
function closing(){
window.open('}
window.onunload = closing;
</script>