Java script : Window.close: Re: Java script : window.close() - how to avoid the prompt


  1. ckenned

This archived discussion is "read only".



Top 1.   Feb 24, 2004 2:41 PM

» ckenned - Re: Java script : window.close() - how to avoid the prompt

This obviously won't work to close the main window you have open, but here's what I use to link to my applications. This allows different business groups in my company to link to my applications without having to use JavaScript. Every application I design, I also make a page called "begin.html" with the following code. begin.html then opens the appropriate page of the application.

window.open('your_url','Page_Name','attributes');

if(window.history.length == 0){
window.close();}
if(window.history.length > 0){
window.history.back();}

-- posted by ckenned


Post this Discussion Post to facebook Add this Discussion Post to del.icio.us! Digg this Discussion Post furl this Discussion Post Add this Discussion Post to Reddit Add this Discussion Post to Technorati Add this Discussion Post to Newsvine Add this Discussion Post to Windows Live Add this Discussion Post to Yahoo Add this Discussion Post to StumbleUpon Add this Discussion Post to BlinkLists Add this Discussion Post to Spurl Add this Discussion Post to Google Add this Discussion Post to Ask Add this Discussion Post to Squidoo


Please follow the guidelines set forth in the Suite101 Posting Etiquette when adding to the discussion.