Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 IE security bug (usefull one!)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mios
Junior Member

United Kingdom
101 Posts

Posted - 21 April 2005 :  12:31:18  Show Profile  Send mios an ICQ Message
I found a little security glitch in IE that is actualy useful! (sometimes).

I'm working on a web application that when browsed to pops up the application in a new window. I then minimize the main IE window with some script. What I wanted to do is to close this window, of course you are not allowed to do this without IE poping up a message to confim tat a script is closing the window.

Or so I thought! The following code tricks IE in to allowing this!

<script language=javascript>
var mywin = window.self;
mywin.opener = window.self;
mywin.close();
</script>

  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07