Forum Moderators: open

Message Too Old, No Replies

onClick="window.close();"

help

         

mdesigns

4:32 am on Dec 7, 2003 (gmt 0)

10+ Year Member



I'm using the javascript onClick="window.close();" to close a window and it works great, but is there a way to make the the "Do you want to close this window?" not popup and just close onClick="window.close();"

tedster

4:35 am on Dec 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only way to avoid the warning is to use the window.close() method on a window you also opened with JavaScript - a necessary security feature.

mdesigns

4:56 am on Dec 7, 2003 (gmt 0)

10+ Year Member



thank you just what i needed