This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Pop-up opening into open window in IE6 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Pop-up opening into open window in IE6" Watch "Pop-up opening into open window in IE6" New topic
Author

Pop-up opening into open window in IE6

Marc Luzietti
Ranch Hand

Joined: Feb 02, 2006
Posts: 84
I have a simple pop-up function. When it opens, if there's another open window, it opens in that window, rather than its own. Is there a simple way to prevent this?



Support Kathy Sierra
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
give the window unique names

window.open("url","windowName","options")

Eric
Marc Luzietti
Ranch Hand

Joined: Feb 02, 2006
Posts: 84
It's got one. It's there in the code, "Flagship"
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

Originally posted by Marc Luzietti:
It's got one. It's there in the code, "Flagship"


He means give each popup a unique name.
Marc Luzietti
Ranch Hand

Joined: Feb 02, 2006
Posts: 84
Hmmm. I don't control the other pop-up. It's a different application.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
If you do not control the pop up, than you are out of luck.

Eric
Marc Luzietti
Ranch Hand

Joined: Feb 02, 2006
Posts: 84
Dang
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I am not sure what part you control there but what about using "_blank"?

http://www.w3schools.com/htmldom/met_win_open.asp

- Brent
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Pop-up opening into open window in IE6
 
Similar Threads
netui tags and javascript
Help with simple validation problem in Struts
Enabling a button
Problem with pop-up window
Seam - Conversation scope example - notworking - New window tab sample