wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes window.open Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window.open" Watch "window.open" New topic
Author

window.open

Gayatri Ganesh
Ranch Hand

Joined: Dec 23, 2003
Posts: 143
Hi,

I am new to javascript.
I use window.open("xyz.do"); to open a new browser when the user clicks on a hyperlink.
But now I have a requirement that if this new browser is already open and user clicks on the hyberlink another new window should not b e opened. Instead the existing window should be used.
Does anyone know how to do this ?

Thanks
Gayatri
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Read about the 2nd argument to window.open().


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: window.open
 
Similar Threads
Popup - File Download
sometimes window not opened
Implementing the child window in JSF.
help me in HTML tags
Can we still open a window using window.open if popups are blocked.