# Help

**URL:** https://forum.kirupa.com/t/help/25775
**Category:** Uncategorized
**Created:** [July 16, 2003, 12:44pm UTC](https://forum.kirupa.com/t/help/25775 "2003-07-16T12:44:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![simonsebergsen](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@simonsebergsen](https://forum.kirupa.com/u/simonsebergsen)
#### Post date: [July 16, 2003, 12:44pm UTC](https://forum.kirupa.com/t/help/25775/1 "2003-07-16T12:44:23Z")

</div>

hey

i had a question earlier how to make a popup window

and i got this answer

PHP:--------------------------------------------------------------------------------  
window. open(URL,Name,status=yes,resizable=yes,width=500,height=500’);

* * *

(change the url and the name)

to resize the window:

PHP:--------------------------------------------------------------------------------  
window.moveTo(0,0);  
if (document.all) {  
top.window.resizeTo(screen.availWidth,screen.availHeight);  
}  
else if (document.layers||document.getElementById) {  
if (top.window.outerHeight\<screen.availHeight||top.window.outerWidth\<screen.availWidth){  
top.window.outerHeight = screen.availHeight;  
top.window.outerWidth = screen.availWidth;  
}  
}

i faund another html code that i understood how to use

\<p\>\<font size=“1” face=“Verdana, Arial, Helvetica, sans-serif”\>\<a href=“index2.htm” target="\_top"onclick=“window.open(‘goingflash.htm’, ‘RIC’,‘width=1024,height=768,resizable=yes’);return false;”\>enter\</a\>\</font\> \</p\>

but how can i get this pop up window to auto fit my screen or anyone elses screen.

when i press “enter” the window pops up, but its kinda annoying that it doesnt fit perfectly. I have to move it so that it fits.

anyone got a tip what to change in my php/html code?

thanx for helping:player:

---

<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 16, 2003, 12:50pm UTC](https://forum.kirupa.com/t/help/25775/2 "2003-07-16T12:50:22Z")

</div>

ops here is the code i talked about
