Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-26-2003, 01:42 PM #1
- Join Date
- Aug 2002
- Thanked 0 Times in 0 Posts
Count the popup windows from main window
Is there any way we can count the number of popup windows opened from a main(opener) page?
The popup windows will be opened from the main page using window.open. I want to make sure that only one pop up is open from this main page.
09-26-2003, 02:03 PM #2
- Join Date
- Jun 2002
- Thanked 236 Times in 233 Posts
why not just open the popups in the same target name
var w = window.open(url,'myOnlyPopup','width=800,height=600');
<a href="popup1.htm" target="myOnlyPopup" onclick="return doOpen(this.href)">Popup#1</a>
<a href="popup2.htm" target="myOnlyPopup" onclick="return doOpen(this.href)">Popup#2</a>
<a href="popup3.htm" target="myOnlyPopup" onclick="return doOpen(this.href)">Popup#3</a>
That will open popups in the window named 'myOnlyPopup'
Last edited by glenngv; 09-26-2003 at 02:13 PM.
Tower of Hanoi Android app (Ad-FREE!)
Tower of Hanoi Android app (FREE!)
Tower of Hanoi Leaderboard
Samegame Facebook App
Samegame Facebook App Leaderboard
vBulletin 5 Floating Bar extension
vBulletin 5 Slideshow extension
vBulletin 5 Quote Selected Text extension
vBulletin 5 Profile Preview Tooltip extension