"Paul" <pa***********@sympatico.ca> writes:
HI! I have a script that does not seem to work. can someone tell me what I
am doing wrong here?
<script language="JavaScript">
Should be
<script type="text/javascript">
In valid HTML, the type attribute is required, and it is always
sufficient.
function firefoxautofix(){
parent.window.resizeBy(-1,-1)
Are you sure the parent window is the correct window?
"parent.window" is the same as just "parent".
Try using "top.resizeBy(...);" (I recommend ending statements
with a semicolon, for readablity).
parent.window.resizeBy(+1,+1)
}
</script>
I put this script in the body and I call it in the body code as such
<body onload="firefoxautofix();">
am I missing something here?.
Telling us what the problem is? :)
So, we have seen your script and how you call it. We still need to
know what it is supposed to do, and what it really does.
Why do you want to fiddle with the window size? Do you need to trigger
a re-rendering of the page? If so, why? Can we get a link to the page
that needs it, so we can see for ourselves?
Regards
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'