/    Sign up×
Community /Pin to ProfileBookmark

open more than one popup

hi there, i basically need to open various things in popups of different sizes on my website. im currently using this code…

[CODE]
function openGallery() {
popupWin = window.open(‘gallery/index.html’, ‘remote’, ‘width=640,height=480’)
}
function launchPlayer() {
popupWin = window.open(‘mp3.php’, ‘remote’, ‘width=250,height=50’)
}
function mailraj() {
popupWin = window.open(‘/emailer/rajmail.php’, ‘remote’, ‘width=335,height=265’)
}
function mailinfo() {
popupWin = window.open(‘/emailer/infomail.php’, ‘remote’, ‘width=335,height=265’)
}
[/CODE]

when i click a link to open something it open no problem, but if i then click on another, rather opening a new popup window, it opens the page in the window that is currently open. how can i get this to open th content in a new popup window bearing in mind that they have to be of different sizes.

thanks in advance

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@vwphillipsJun 21.2006 — use unique variable names

for each popupWin
Copy linkTweet thisAlerts:
@punsauthorJun 21.2006 — oh how obvious lol

thanks!
×

Success!

Help @puns spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...