Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to restrict opening multiple windows on the same link.

 
Jyoti Vaskar
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 2nd parameter of window.open is a name. https://developer.mozilla.org/En/DOM/Window.open

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic