View Full Version : How do I make this command happen?
Sykull
October 30th, 2002, 06:01 PM
I place the Javascript code into a hyperlink to make the page close, and it asks me "Are you sure if you want to close this page?".. How do I make it so it just closes.. Instead of that dumb message. Plz help...... Peace
reverendflash
October 30th, 2002, 06:06 PM
I asked the same question during another thread...
Lostinbeta helped out with this:
http://www.kirupaforum.com/showthread.php?s=&threadid=7330&perpage=15&pagenumber=1
then: http://www.kirupaforum.com/attachment.php?s=&postid=41848
Rev:elderly:
Sykull
October 30th, 2002, 06:24 PM
That open thing just opened a new window. I just want the current browser to close without a message question of yes or no.
Can someone just post the code/script to do so? Thx
reverendflash
October 30th, 2002, 06:38 PM
If you had read the entire thread...
actually, that "thing" opens a new window and closes the one you are on...
Just take away the function to open a new window, and you have your close with no alert...
Rev:elderly:
Sykull
October 30th, 2002, 06:57 PM
Hey there Rev.. I aint about to read like 6 pages of comments when I can just get the actual code rigth here.. And I didn't even see the part about it.. So if you know it, can you please just post it?
reverendflash
October 30th, 2002, 07:04 PM
I did post the code...
If you had opened the source, and read the comments...
sometimes you have to read some to find the code...
< !-- START OBJECT TO CREATE CLOSE OPTION IN IE WITHOUT ALERT ASKING IF YOU ARE SURE -->
< object id=closeWin type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
< param name="Command" value="Close">
< /object>
< !-- END OBJECT -->
the rest is in the file I linked to above...
Sorry if this doesn't help, someone like lostinbeta will be online to help you out soon...
Rev
:elderly:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.