Wednesday, July 9, 2008

Suppress IE window closing message

When clicked IE displays the message "The web page you are viewing is trying to close the window. Do you want to close this window".

Javascript code

<script language="javascript">
function close_me()
{
window.opener = top;
window.close()
}
</script>

No comments: