# Multi popups from 1 page

**URL:** https://forum.kirupa.com/t/multi-popups-from-1-page/26704
**Category:** Uncategorized
**Created:** [July 25, 2003, 2:09pm UTC](https://forum.kirupa.com/t/multi-popups-from-1-page/26704 "2003-07-25T14:09:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![urbaneve](https://avatars.discourse-cdn.com/v4/letter/u/839c29/32.png) [@urbaneve](https://forum.kirupa.com/u/urbaneve)
#### Post date: [July 25, 2003, 2:09pm UTC](https://forum.kirupa.com/t/multi-popups-from-1-page/26704/1 "2003-07-25T14:09:23Z")

</div>

okay - i read the ‘Launching a Centered Pop-Up Window’ and everything works okay, but here is my question:

i have 3 separate links from the main page that need to be pop-ups. do i make a layer for each button in order to put the script in on the time line?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 25, 2003, 4:51pm UTC](https://forum.kirupa.com/t/multi-popups-from-1-page/26704/2 "2003-07-25T16:51:12Z")

</div>

you could write a function for it 🙂 and then just pass it through.

[AS]  
//put this in frame  
function popMyWindowsBaby(passURL) {  
getURL(passURL, “\_self”);  
}

//put this on your button  
on(release) {  
popMyWindowsBaby(‘javascript:your javascript code here;’);  
}

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 26, 2003, 8:18am UTC](https://forum.kirupa.com/t/multi-popups-from-1-page/26704/3 "2003-07-26T08:18:16Z")

</div>

that worked just perfect – thanks. i never thought about going about it that way. i gues i was doing that \*\*\*\* thing called ‘thinking’ again. it was late last nite _snirt_

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 28, 2003, 12:56pm UTC](https://forum.kirupa.com/t/multi-popups-from-1-page/26704/4 "2003-07-28T12:56:25Z")

</div>

okay – i had it working, but now (as you can tell from my other reply – i screwed something up) i am going to start over and see if maybe i miss typed someting. i’ll get back to you to let you know if it worked

and by the way – thanks – your answers really help.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 3, 2003, 4:17am UTC](https://forum.kirupa.com/t/multi-popups-from-1-page/26704/5 "2003-08-03T04:17:11Z")

</div>

i´m sorry but could you explain a bit more the code?

[AS]  
//put this in frame  
function popMyWindowsBaby(passURL) {  
getURL(passURL, “\_self”); WHY \_SELF IF IT IS A POPUP? AND IN WHAT FRAME YOU MEAN TO PUT IT??  
}

//put this on your button  
on(release) {  
popMyWindowsBaby(‘about :your javascript code here;’); DOES ABOUT: GOES OR IT´S JUST AN EXAMPLE AND WHAT YOU MEAN BY JAVASCRIPT CODE HERE??  
}

i´m sorry again if these questions are too newbie ::))
