Popup window keeps opening after I close it and refresh the page?

Posted by Xaisoft on Stack Overflow See other posts from Stack Overflow or by Xaisoft
Published on 2009-02-27T20:26:39Z Indexed on 2010/03/12 9:07 UTC
Read the original article Hit count: 328

Filed under:
|
|

I have an aspx.cs page with the following code:

hypPopup.Attributes.Add("onclick",
                        "window.open('Popup.aspx',
                        '',
                        'height=650,
                         width=800,
                         location=no,
                         toolbar=no, 
                         status=no, 
                         scrollbars=yes, 
                         resizable=yes');
                         return false"
                         );

When I click the hypPopup link, the window pops up which is fine, but if I close it and refresh the page, the popup keeps popping up. I have to leave the page and come back for it to stop popping up on every refresh. Is this behavior by default or is there a fix to it?

hypPopup.Attributes.Add is done in the Page_Load

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html