# Java script new window pop-up prb

**URL:** <https://forum.kirupa.com/t/java-script-new-window-pop-up-prb/52759>\
**Category:** Uncategorized\
**Created:** [May 27, 2004, 1:16am UTC](https://forum.kirupa.com/t/java-script-new-window-pop-up-prb/52759 "2004-05-27T01:16:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arman](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Arman](https://forum.kirupa.com/u/Arman)\
**Post date:** [May 27, 2004, 1:16am UTC](https://forum.kirupa.com/t/java-script-new-window-pop-up-prb/52759/1 "2004-05-27T01:16:31Z")

</div>

I have been using the script from this tutorial:  
[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)  
and also another java script from code generator’s site.

Here is the problem iam having:

I have a webpage ([geocities.com/mypage](http://geocities.com/mypage)) and iam using a short/fast URL redirect.  
The code works fine, window pop-ups in the centre, all works great when i brows my page directly (using [geocities.com/mypage](http://geocities.com/mypage)), however when i use the URL redirect (takeme.to/mypage), clicking on the button to open the centred pop-up window, nothing happens.

After a week i managed to find out the problem wasnt with how i used the action script, but with the URL redirect. (maybe conflicts with the code or something).

Is there a fix to my problem or should give up the short URL redirect ?

Here is the other code iam using:

on (release) {  
getURL (“javascript:NewWindow=window.open(‘URL’,‘WinName’,‘width=400,height=300,left=200,top=100,toolbar=Yes,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’); NewWindow.focus(); void(0);”);  
}

Thanks in advance,  
Arman
