Gossamer Forum
Home : General : Perl Programming :

window.close()

Quote Reply
window.close()
Is there a way to close a window using javascript but without the prompt?
Quote Reply
Re: [Paul] window.close() In reply to
See;

http://discuss.cgi101.com/cgi101/article.cgi?6714

For once I can tell you to search Google ;)

http://www.google.com/...ut+prompt+javascript

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [A.J.] window.close() In reply to
I did actually search first but I prefer Yahoo and didn't find what I needed.

Thanks for the link. The reply sucks though.
Quote Reply
Re: [Paul] window.close() In reply to
Umm.... Maybe...

Code:


print "Location: javascript:window.close();\n\n";




Would this not do the job. Its what i use and i never get a prompt.
Hope it helps.


Doh! -. but thats on a pop up window only..
Drew

Last edited by:

ZimZangZoom: Apr 1, 2002, 11:13 PM
Quote Reply
Re: [Paul] window.close() In reply to
Paul, this should do the job for you.

Code:
<a href="close" onClick="window.close(); return false;">Close Window</a>


But! To close a window without confirmation it must be opened from another window if the window the you trying to close is a new browser window ... the browser will always ask you for confirmation.

zaaron

---------
GetLokal Reviews