problem with IE7

Discussion in 'HTML & Website Design' started by smilyswapna10, Feb 14, 2008.

  1. #1
    Hi,

    I am working on the IE7 bowser. when i close(exit) the browser. i want to need a conformation.
    I have written the below code but its working in IE6 only.

    code :


    <html>
    <head>
    <script type="text/javascript">
    window.onbeforeunload=function(){

    if (window.event.clientY < 0 && (window.event.clientX > (document.documentElement.clientWidth - 5) || window.event.clientX < 15) ) {
    alert("closing window");
    }

    }
    </script>
    </head>
    <body>
    test
    </body>
    </html>

    pls help me out
     
    smilyswapna10, Feb 14, 2008 IP
  2. elgourmet

    elgourmet Guest

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just wondering, does this script work in FF or Opera?
     
    elgourmet, Feb 14, 2008 IP