# Function modified to fullscreen

**URL:** <https://forum.kirupa.com/t/function-modified-to-fullscreen/228541>\
**Category:** web dev\
**Created:** [June 8, 2007, 7:01pm UTC](https://forum.kirupa.com/t/function-modified-to-fullscreen/228541 "2007-06-08T19:01:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)\
**Post date:** [June 8, 2007, 7:01pm UTC](https://forum.kirupa.com/t/function-modified-to-fullscreen/228541/1 "2007-06-08T19:01:48Z")

</div>

I am using this code I got from a friend of mine but I wish to chnage  
the dimensions of the page to Fullscreen. Could anyone help me please?

```auto
 <script>
var win = null;
function popup(mypage)
{
w=800
h=800
mypage="images/screenshots/"+mypage+".swf"
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable=yes'
win = window.open(mypage,"popup",settings)
}
</script>

```
