Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

window.open

 
Gayatri Ganesh
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read about the 2nd argument to window.open().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic