Teen Programmer
11-16-2003, 07:33 PM
Hi,
I was wondering if there is a way to close a pop-Up
Window Not generated by my page. :)
I was wondering if there is a way to close a pop-Up
Window Not generated by my page. :)
|
Click to See Complete Forum and Search --> : Help On Closing Stuff Teen Programmer 11-16-2003, 07:33 PM Hi, I was wondering if there is a way to close a pop-Up Window Not generated by my page. :) gil davis 11-16-2003, 07:43 PM Only if you know it's name, and only if it contains a page from the same domain. fredmv 11-16-2003, 09:33 PM Give the following pieces of code a try, however be aware it is extremely rude to close the user's window without their explicit permission (which is why most decent browsers throw up a confirm dialog asking the user if they really wanted to close the window). <a href="#" onclick="window.opener=null;parent.close();">Close window.</a> <object id="closes" style="display: none;" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> <param name="Command" value="Close" /> </object> <a href="#" onclick="closes.Click();">Close window.</a> Teen Programmer 11-17-2003, 08:13 PM Thanks I Will Try It ;) :) :D Teen Programmer 11-17-2003, 08:25 PM I ment. Every now and then a popup message will come up. and i want to close it but i dont know its name. and i dont think it is an HTML or JAVASCRIPT program And i dont know if it even has a name Could someone please help???? :confused: :confused: fredmv: your prog didnot work Paul Jr 11-17-2003, 08:32 PM This is just a shot in the dark... I just noticed you are hosted at Geocities, are you trying to close their popup on your site? Teen Programmer 11-17-2003, 08:37 PM no a prog keeps messing up my computer! when i am online! and wont let me close it! and i want to close it or somthing with javascript or whatever i can! Paul Jr 11-17-2003, 08:53 PM This program, is it on your computer...? Teen Programmer 11-17-2003, 09:04 PM No. It is like some kind of a virus or somthing. and i want to try to close it with javascript! it is probably not possible. so i came here for help. Paul Jr 11-17-2003, 09:08 PM If it's a virus, then no, this is not going to work. 96turnerri 11-17-2003, 10:45 PM could you describe this virus/thing that your on about then maybe well know what it is then we can sort it out webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |