# Regarding the thread "popup bug"

**URL:** <https://forum.kirupa.com/t/regarding-the-thread-popup-bug/105720>\
**Category:** Uncategorized\
**Created:** [March 28, 2004, 10:01pm UTC](https://forum.kirupa.com/t/regarding-the-thread-popup-bug/105720 "2004-03-28T22:01:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![djed](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@djed](https://forum.kirupa.com/u/djed)\
**Post date:** [March 28, 2004, 10:01pm UTC](https://forum.kirupa.com/t/regarding-the-thread-popup-bug/105720/1 "2004-03-28T22:01:58Z")

</div>

The popup window script tutorial on Kirupas site is great,  
but there’s a slight problem when I want to have several  
popup buttons and then copy-paste the script.

The second button will then refuse to open a new window because the first one is still open and seems to have priority. That is in plain: I am unable to open further popupwindows having first  
opened one…

How do I make it so that any other button with the same script will  
open up a new popup even though the first one is still open?  
Hope any of you ppl here can help!

Have enclosed the script below for quick reference

Keep up the exellent work on your site Kriupa!  
Kind regards!

Tage Wester  
Norway

1. script in blank frame

Movieclip.prototype.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars,  
resizable) {  
getURL (“javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open(’” + url + “’,’” + winName + “’,’” + “width=” + w +  
“,height=” + h + “,toolbar=” + toolbar + “,location=” + location + “,directories=” + directories + “,status=” + status + “,menubar=”

- menubar + “,scrollbars=” + scrollbars + “,resizable=” + resizable + “,top=’+((screen.height/2)-(” + h/2 +  
“))+’,left=’+((screen.width/2)-(” + w/2 + “))+’” + “’)}else{myWin.focus();};void(0);”);  
}

1. buttonscript:

}  
on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “cv.html”;  
target\_winName = “Skøyen”;  
width = 897;  
height = 667;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 0;  
resizable = 0;  
//sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}

---

<div class="post-metadata">

**Author:** ![iris](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@iris](https://forum.kirupa.com/u/iris)\
**Post date:** [July 25, 2004, 1:17am UTC](https://forum.kirupa.com/t/regarding-the-thread-popup-bug/105720/2 "2004-07-25T01:17:17Z")

</div>

i have used exactly the same procedure and my problem is different:  
I can open as many popup windows as i need as long as I input an absolute url link in the address ("[http://www](http://www)…) but pop up windowds would not work at all when a relative link is used (address = “folder/one.htm”😉

I neet it to work with a relative link to be able to show the site on a cd and in no internet connection environment,

Could anyone please help?
