HighDots Forums  

Re: Closing browser window without a prompt

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Closing browser window without a prompt in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Silvio Bierman
 
Posts: n/a

Default Re: Closing browser window without a prompt - 07-02-2003 , 06:34 AM






Use

window.opener = window;
window.close();

Works on every version of IE if have recently come across. Other browser may
choke on it though.

Regards,

Silvio Bierman



Reply With Quote
  #2  
Old   
HikksNotAtHome
 
Posts: n/a

Default Re: Closing browser window without a prompt - 07-02-2003 , 07:13 AM






In article <3f02b5cf$0$49110$e4fe514c (AT) news (DOT) xs4all.nl>, "Silvio Bierman"
<sbierman (AT) idfix (DOT) nl> writes:

Quote:
Use

window.opener = window;
window.close();

Works on every version of IE if have recently come across. Other browser may
choke on it though.
Doesn't work in IE5.5+. IE 5.0 still prompts. IE4.0 untested but assumed to
give the prompt. There are more browser where it *does* work than there are
where it doesn't work.
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.