How do I make this command happen?

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

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:

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

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:

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?

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: