# Dynamic gallery to use centered pop up window

**URL:** <https://forum.kirupa.com/t/dynamic-gallery-to-use-centered-pop-up-window/227778>\
**Category:** Uncategorized\
**Created:** [June 2, 2007, 1:33am UTC](https://forum.kirupa.com/t/dynamic-gallery-to-use-centered-pop-up-window/227778 "2007-06-02T01:33:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dec27](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@dec27](https://forum.kirupa.com/u/dec27)\
**Post date:** [June 2, 2007, 1:33am UTC](https://forum.kirupa.com/t/dynamic-gallery-to-use-centered-pop-up-window/227778/1 "2007-06-02T01:33:42Z")

</div>

Hi everybody,

I’m using the gallery kirupa made and it works really fine, added a “view” button which works as a “go to this URL”  
what I want is to open a centered pop up window, all the tuts I have found use java, problem is I don’t know how to pass the **[p]** value to that java script:

[AS]  
makeLink = function () {  
getURL(launch[p], “\_blank”); // this is the one that I’m using right now  
getURL(“javascript:Launch(‘[http://www.kirupa.com/sotw/archive.htm](http://www.kirupa.com/sotw/archive.htm)’, 400, 300)”); // want to combine these two lines into a working one  
};  
[/AS]

**Does anybody know how can this be done, please?**

thanks in advanced.  
🙂
