# How do I make this command happen?

**URL:** <https://forum.kirupa.com/t/how-do-i-make-this-command-happen/7437>\
**Category:** programming\
**Created:** [October 30, 2002, 11:01pm UTC](https://forum.kirupa.com/t/how-do-i-make-this-command-happen/7437 "2002-10-30T23:01:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sykull](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sykull](https://forum.kirupa.com/u/Sykull)\
**Post date:** [October 30, 2002, 11:01pm UTC](https://forum.kirupa.com/t/how-do-i-make-this-command-happen/7437/1 "2002-10-30T23:01:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2002, 11:06pm UTC](https://forum.kirupa.com/t/how-do-i-make-this-command-happen/7437/2 "2002-10-30T23:06:08Z")

</div>

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](http://www.kirupaforum.com/showthread.php?s=&threadid=7330&perpage=15&pagenumber=1)

then: [http://www.kirupaforum.com/attachment.php?s=&postid=41848](http://www.kirupaforum.com/attachment.php?s=&postid=41848)

Rev:elderly:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2002, 11:24pm UTC](https://forum.kirupa.com/t/how-do-i-make-this-command-happen/7437/3 "2002-10-30T23:24:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2002, 11:38pm UTC](https://forum.kirupa.com/t/how-do-i-make-this-command-happen/7437/4 "2002-10-30T23:38:58Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2002, 11:57pm UTC](https://forum.kirupa.com/t/how-do-i-make-this-command-happen/7437/5 "2002-10-30T23:57:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 31, 2002, 12:04am UTC](https://forum.kirupa.com/t/how-do-i-make-this-command-happen/7437/6 "2002-10-31T00:04:53Z")

</div>

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:
