# Pop up window...How to centre?

**URL:** <https://forum.kirupa.com/t/pop-up-window-how-to-centre/79921>\
**Category:** flash\
**Created:** [February 17, 2005, 10:55pm UTC](https://forum.kirupa.com/t/pop-up-window-how-to-centre/79921 "2005-02-17T22:55:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sneakyninja](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@sneakyninja](https://forum.kirupa.com/u/sneakyninja)\
**Post date:** [February 17, 2005, 10:55pm UTC](https://forum.kirupa.com/t/pop-up-window-how-to-centre/79921/1 "2005-02-17T22:55:07Z")

</div>

I am putting a pop up window on a website and I can get the window to pop up correctly. However it opens top left as default and I want it centred. Any ideas? Also it comes up as untitled document? Anyone know how to fix this???  
Cheers

Heres the Javascript

\<script language=“JavaScript”\> function myFunction()  
{ NewWindow=window.open(‘address’,‘newWin’,‘width=650,height=450,left=0 ,top=0,toolbar=No,location=No,scrollbars=No,status =No,resizable=No,fullscreen=No’); NewWindow.focus(); screen\_height = window.screen.availHeight; screen\_width = window.screen.availWidth; left\_point = parseInt(screen\_width/2)-(800/2); top\_point = parseInt(screen\_height/2)-(600/2); setTimeout('NewWindow.moveTo(left\_point,top\_point) ',100); void(0); } \</script\>
