Java resize script.

Trigger

Content Boss... BITCH
Oct 30, 2008
359
13
0
Alright so I just uploaded this script to an lp and it doesn't seem to be working.

Code:
<script language="JavaScript" type="text/javascript">
<!--
function enlargeWindow(){
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeig ht);
}
//-->
</script>
How do I test this script to see if it is working? When I go to the url typing it in firefox, The site is normal and doesn't resize....

Did I do something wrong?
 


<script type="text/javascript">
var width=900;
var height=900;
self.moveTo((screen.availwidth-width)/2,(screen.availheight-height)/2);
self.resizeTo(width,height);
</script>


adjust accordingly
 
[..]teach a men how to fish..blahblah

trigger: what you've got there is a JS function, which needs to be called somewhere in your html page. as mattfca wrote, you can either call it when the page loads (onload attribute in <body> tag) or in some other action in the page (e.g., <a> tag: <a onclick="function()" ...>)