# Pop-Up Window

**URL:** <https://forum.kirupa.com/t/pop-up-window/25633>\
**Category:** Uncategorized\
**Created:** [July 15, 2003, 5:26am UTC](https://forum.kirupa.com/t/pop-up-window/25633 "2003-07-15T05:26:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommy69](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tommy69](https://forum.kirupa.com/u/tommy69)\
**Post date:** [July 15, 2003, 5:26am UTC](https://forum.kirupa.com/t/pop-up-window/25633/1 "2003-07-15T05:26:32Z")

</div>

Hi there, i’m struggling to get this one right…i did follow the [tut](http://www.kirupa.com/developer/mx/centered_popup.htm) since it’s kinda similar to what i’m trying to achieve. Like the tut, i would like a centered pop-up window but only this time from a rendered text in my scrollbar. How can i achieve this?;(

---

<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 15, 2003, 6:10am UTC](https://forum.kirupa.com/t/pop-up-window/25633/2 "2003-07-15T06:10:09Z")

</div>

Ok… on your txt file place this code:

```auto

<A HREF='Java **** script:popup()'>Link</A>

```

On the html file that holds your swf put this code:[AS]\<script language=“javascript”\>  
function popup()  
{  
window.open(“URL”,“newwindow”,“height=550,resizable=no,scrollbars=yes,status=yes,width=600,left=0,top=0”); //you can change those values and add more properties  
}  
\</script\>[/AS]
