wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes How to restrict opening multiple windows on the same link. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to restrict opening multiple windows on the same link." Watch "How to restrict opening multiple windows on the same link." New topic
Author

How to restrict opening multiple windows on the same link.

Jyoti Vaskar
Ranch Hand

Joined: Jun 30, 2009
Posts: 142
I need help in modifying my application.
Currently in my application there is a link on which windows opens up even if the window is already open on the same link.
Its on the link.

I want the functionality as it should not open the window if the window is already open.
How to do this in javascript?


thanks
Jyo
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Keep track if the window's been opened? Check for a function/value defined in the window page (not sure what happens to JavaScript data from a window once the window's been closed)?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The 2nd parameter of window.open is a name. https://developer.mozilla.org/En/DOM/Window.open

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to restrict opening multiple windows on the same link.
 
Similar Threads
How to not open a named regular window if it already exisits
Launching Acrobat Reader
Closing popup windows that have timed out
using a html:button to open a link in same window
how do i get window reference without re-opening?