SunQuest
 
           JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 19th, 2003, 02:08 AM
meetdenis meetdenis is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Bombay
Posts: 7 meetdenis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question message on window.close()

when I execute the "window.close()" statement
i get a confirm box as under-
"the web page you are viewing is trying to close this window. do you want to close this window?"

i know this is the browser's default behav.

but is there any way i can stop this message from displayin

Reply With Quote
  #2  
Old September 19th, 2003, 06:57 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
To my knowledge, this occurs only if you try to close the main window. It's a browser-specific warning message and can't be circumvented as far as I know. It's sort of rude to close down somebody's main window.

Reply With Quote
  #3  
Old September 19th, 2003, 01:39 PM
meetdenis meetdenis is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Bombay
Posts: 7 meetdenis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I had thought so houston,
it is a browser-specific warning when any javascript tries to terminate an instance of IE (the main window that is).
thanx anyways

Reply With Quote
  #4  
Old September 13th, 2004, 02:29 AM
liu xinghai liu xinghai is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 liu xinghai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi, try this sample code, warning message doesn't appear.

<HTML>
<head>

<SCRIPT LANGUAGE="JavaScript">
window.opener = top;
</SCRIPT>
<script>

var popurl="test.htm";
winpops=window.open(popurl,"","fullscreen");
//winpops.opener.close();
window.close();
//window.document.URL = popurl;
</script>
</head>


</HTML>

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > message on window.close()


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 5 hosted by Hostway