Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Internet Explorer

Status
Not open for further replies.

ShortyII

Programmer
Sep 8, 2003
57
NL
Hi,

This is the question.
I have made a close button in my webpage.
when i click on it i get the question if i wan't to close the window. When i push Yes it closes.
But now i don't want to see this question.

The thing i wan't is when i click on close the explorer closes without the question.
This code i tryed but did not work:
<script language=&quot;jscript&quot;>
self.opener = this;
self.close();
</script>

Thanks in advance
 
Funny, the code you posted works for me?!

<input type=button onclick=&quot;sc()&quot; value=&quot;close&quot;>

<script language=&quot;jscript&quot;>
function sc(){
self.opener = this;
self.close();
}
</script>

----------
I'm willing to trade custom scripts for... [see profile]
 
Note that <script language=&quot;jscript&quot;> will be parsed by MSIE only.

----------
I'm willing to trade custom scripts for... [see profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top