Problem with Close Button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • navneetkaur
    New Member
    • Sep 2007
    • 45

    Problem with Close Button

    hello

    i have written script to close window in asp.net 2.0 this script works fine for IE but same script is not working in FireFox...
    Code:
    <script>
    window.close();
    </script>

    on click event of button....


    plz provide me help on this why this happens.....
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    you should put your

    [CODE=javascript]window.close(); [/CODE]

    [CODE=html]
    <script type="text/javascript">
    function close_window() {
    window.close();
    }
    </script>
    [/CODE]
    in a function that is called onclick of the button.

    kind regards

    Comment

    Working...