# Pop Up Window

**URL:** <https://forum.kirupa.com/t/pop-up-window/148227>\
**Category:** Uncategorized\
**Created:** [May 18, 2005, 4:38am UTC](https://forum.kirupa.com/t/pop-up-window/148227 "2005-05-18T04:38:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vljw8202](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@vljw8202](https://forum.kirupa.com/u/vljw8202)\
**Post date:** [May 18, 2005, 4:38am UTC](https://forum.kirupa.com/t/pop-up-window/148227/1 "2005-05-18T04:38:48Z")

</div>

```auto
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.yahoo.ca/','Direction','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus();	setTimeout('NewWindow.close()',6000); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(400/2); top_point = parseInt(screen_height/2)-(300/2); setTimeout('NewWindow.moveTo(left_point,top_point)',100); void(0);");
}

```

Instead of poping up an external page, I want to pop up a page within my own site. How should I change it? I was thinking to change to [http://mydomain/page.htm/](http://mydomain/page.htm/), is there a better way?
