# Open in new window with dynamic link

**URL:** <https://forum.kirupa.com/t/open-in-new-window-with-dynamic-link/258617>\
**Category:** flash\
**Created:** [April 25, 2008, 6:29pm UTC](https://forum.kirupa.com/t/open-in-new-window-with-dynamic-link/258617 "2008-04-25T18:29:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cork](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@cork](https://forum.kirupa.com/u/cork)\
**Post date:** [April 25, 2008, 6:29pm UTC](https://forum.kirupa.com/t/open-in-new-window-with-dynamic-link/258617/1 "2008-04-25T18:29:30Z")

</div>

Hi, I’m trying to get my dynamic link to open in a new centered window. The window opens fine, but it tries to display the url “url[p]” and not its correct dynamic link.

Here’s my code:

```auto
on (release) {
getURL ("javascript:NewWindow=window.open(url[p],'newwin','650,400,yes,center'); NewWindow.focus();");
}

```

Any ideas?
