hi all,
i am using window.onunload () method in IE6, it works fines in local, but it does not work in Integration Box(Linux Environment), i have written a simple alert() statement to check whether it does really trigger that event alert() statement is also not working it seems event it self is not triggering. But it works fine in IE7 and FireFox.
here is my code snippet:
[CODE=javascript]<script>
window.onunload = confirmExit;
function confirmExit(){
if( !flag ){
window.opener.l ocation.href = "<%= request.getCont extPath() %>"+"/postHome.do";
}
}
</script>
[/CODE]
what should i need to do in order to work.
do we need to set any extra attributes :(
Any help deeply appreciated,
its very urgent.
thanks,
Rakesh.
i am using window.onunload () method in IE6, it works fines in local, but it does not work in Integration Box(Linux Environment), i have written a simple alert() statement to check whether it does really trigger that event alert() statement is also not working it seems event it self is not triggering. But it works fine in IE7 and FireFox.
here is my code snippet:
[CODE=javascript]<script>
window.onunload = confirmExit;
function confirmExit(){
if( !flag ){
window.opener.l ocation.href = "<%= request.getCont extPath() %>"+"/postHome.do";
}
}
</script>
[/CODE]
what should i need to do in order to work.
do we need to set any extra attributes :(
Any help deeply appreciated,
its very urgent.
thanks,
Rakesh.
Comment