HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 6th, 2000, 12:04 PM
tomm830 tomm830 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 1 tomm830 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am trying to load a window without any toolbars on top. I am using onLoad to load a new window without toolbars and then using window.close to close the first window. The problem is I keep getting a message 'Do you want to close this window' with a Yes/No. Is there some way to disable this message and force the window closed or is there a way to turn off the toolbars with the onLoad command and not even load a second window? (I tried to use window.toolbar.visible=false;
window.menubar.visible=false but I got error messages)
Thanks
Tom Mandel
tom@nytech.net


Reply With Quote
  #2  
Old September 7th, 2000, 10:08 PM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
In short..NO!

This is actually a security issue. Consider what could happen if a person could close a window without you knowing it!

My suggestion is to detect the users screen size and open the window to their screen size.

One word of caution. When Netscape closes, it reopens with the same decorations, or lack thereof, as when it was last closed. The only way a user can get back their toolbar, menubar, etc. is to modify the browser configuration file. This is not a great solution since it is also [essentially] a Javascript file. The average user cannot do this. Once a user has figured out it's your site that's causing the problem, it's unlikely they'll be back. IE is a bit more forgiving about this.

If you still want to do this, I would write a script that will detect whether or not your featureless window is the last window being closed. If it is, the script could open up a window with the users original features, close itself, then close the 'featureful' window.

Russ

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Close Window


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT