Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

doubt in window.open() method

Status
Not open for further replies.

maddymadhans

Programmer
May 9, 2003
13
KR
hi
can some one help me to find that if a window is already open or not using javascript.

if i am opening a window by clicking a link in home page using window.open() method and if the user again clicks the same link it should check wheather the window is already open and if so that window should be focussed else a new window should be opened. plz help me its urgent.

Thank you
Madhan


 
if (win && win.open && !win.closed) {
do your thing here
}

MrBelfry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top