Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > HTML / XHTML
User Name:
Password:
 

Closed Thread
Thread Tools   Display Modes
  View First Unread
 
Old 01-08-2001, 04:55 AM
  #1
Phil Marsh
Novice (Level 1)
 
Join Date: Nov 2000
Posts: 5
iTrader: (0)
Phil Marsh is on a distinguished road
Cool

Hi All...

When closing a window with javascript :parent.close(), on the pc an annoying window pops up and says something along the lines of "The browser is trying to close this windows, Yes or No". I have seen other sites open and close windows without this popup box. How can i get rid of it!!!

Thanks in advance...

------------------
Phil Marsh is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 01-08-2001, 06:11 AM
  #2
Ian
Sheriff (Almighty)
 
Ian's Avatar
 
Join Date: Nov 1999
Location: Chch New Zealand God Mode: On
Posts: 3,167
iTrader: (0)
Ian is on a distinguished road
Post

Hi, you can only close a window without the alert window using javascript if it has been opened using javascript. Here is some information I have on this subject that I got from who knows where, I hope this will explain things a bit more clearly.

The "close window" alert will not appear if:
The window you're trying to close programmically was opened programmically by your script or your script's document OR
The window you're trying to close is the first document loaded in that window (for example, it was created by a link with a previously-unused target, or all documents have been loaded in the window using location.replace()).
Using Navigator version 4 or later, a signed script with Universal Browser Write privileges can close any window.


Hope this helps you.
Good luck

------------------
Ian

Web Development - BIG Resources Inc
Head Guide - 123Webmaster.com
ian@123webmaster.com
BIG Resources.com
ICQ: 25828668
Ian is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?
Old 01-08-2001, 10:16 AM
  #3
Jason
1.21 Gigawatts
 
Jason's Avatar
 
Join Date: Nov 1999
Location: Hill Valley
Posts: 4,804
iTrader: (0)
Jason has a spectacular aura aboutJason has a spectacular aura aboutJason has a spectacular aura about
Post

Moving topic to Client Side Scripting

------------------
Jason M. DesRoches
Co-Founder / Business Development
Big Resources Network
jason@bigresources.com
ICQ: 17947522
Jason is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it?

Closed Thread
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  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
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 09:51 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.