I have a javascript function that opens a pop- up window. However, I would like to restrict the number of windows being opened. IOW, if I click the link 3 times, the pop up window is opened as 3 different windows. I'd like my function to open the window only once, i.e, if a pop-up window is already opened, the function shouldn't let me open a fresh pop-up.
I hope I did make sense to you?? Or was it all pop-up pop-up??
Mani Ram
Ranch Hand
Joined: Mar 11, 2002
Posts: 1140
posted
0
Just give a name to the child window you are opening.
This will make sure that only one pop-up window is opened.
But however, in the above approach, the page is loaded everytime when the function is called (but it is loaded to the same window).
Alternativly you can use
This way you avoid loading the page everytime the function is called.