IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes automatically closing a window Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "automatically closing a window" Watch "automatically closing a window" New topic
Author

automatically closing a window

kill factory
Greenhorn

Joined: Mar 05, 2004
Posts: 2
i am using swish and i want to add some java using the add action feature.
i want the window to close after the intro plays. I've gotten this far.
intro plays and window trys to close. BUT i get a popup stating that the window is trying to close. Do i want to close this window. Yes or No.
can i get around this popup?
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
What is swish?
Brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
This is a JavaScript question. Moved to that forum.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Welcome to JavaRanch "kill factory".
No doubt you clicked on something called the JavaRanch naming policy when you signed up. Could you please take a minute to change your display name to show a name, preferably your real name? You can do that right here. It's all about maintaining our professional image - don't let the one-eyed moose fool you!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
That is put there for a security reason so that you can not close the window since people like to keep their surfing history...
Is there a way around this? Yes....
If you do a search on google you come up with this:

Google It
Eric
 
 
subject: automatically closing a window
 
Threads others viewed
disable CLOSE (X) button on a popup window
Close the IE window through javascript
Close main window from popup window
try in to close a window with window.close
How to do? Urgent
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com