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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing a Web Browser Window ? 2

Status
Not open for further replies.

maverick

MIS
Apr 21, 1999
193
US
Hate to sound ignorant...but

Does anyone know how to
Close a Web Browser Window ?

I'm a vb guy and don't know html that good...

Thanks all... ;-) "Hacker by Heart"
saenzcorp@hotpop.com
 
<script language=javascript>
function doThis {
window.close();
}
</script>

<form>
<input type=button value=&quot;close&quot; onclick=&quot;doThis();&quot;>
</form> Jessica [ponytails2]
 
Also:

close a pop-up:
<form name=&quot;closer&quot;>
<input type=button value=&quot;Close&quot; onClick=&quot;self.close()&quot;>
</form>

close main window without alert:
<head>
<script>
function closewindow() {
self.opener = this;
self.close()
}
</script>
</head>
<body>
<a href=&quot;JavaScript: closewindow()&quot;>Close Window</a>



É
::
 

--- close main window without alert ---

That was a really good tip, Cyan.

vlad
 
Thanks Guys !!!!! ;-) &quot;Hacker by Heart&quot;
saenzcorp@hotpop.com
 
>>Go raibh maith agaibh, thanks!
Ta se failte romhat.

dunno if I spelt that right!!?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top