# Javascript not working in safari - HELP!

**URL:** <https://forum.kirupa.com/t/javascript-not-working-in-safari-help/173139>\
**Category:** Uncategorized\
**Created:** [December 21, 2005, 4:54pm UTC](https://forum.kirupa.com/t/javascript-not-working-in-safari-help/173139 "2005-12-21T16:54:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardegil](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/richardegil/32/1067_2.png) [@richardegil](https://forum.kirupa.com/u/richardegil)\
**Post date:** [December 21, 2005, 4:54pm UTC](https://forum.kirupa.com/t/javascript-not-working-in-safari-help/173139/1 "2005-12-21T16:54:53Z")

</div>

ok so i don’t know if i am posting this in the right section. i am posting here b/c i am using 2004. move as you wish.

anyways, my script that i am using to resize the browser to full screen works fine in ie and firefox, but not on safair. here is the script that i am using

\<script language=“JavaScript1.2”\>  
top.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;  
}  
}

\</script\>

any help is appreciated
