W3C home > Mailing lists > Public > www-html@w3.org > June 2000

the onload event

From: Lars <Lars_Reith@bigfoot.de>
Date: Sat, 5 Feb 2000 22:03:32 +0100
Message-ID: <003701bf701c$75835640$0400a8c0@lars>
To: <www-html@w3.org>
<script>var information</script>
function init()
{information="Hello there"}

<body onload="init()">


This time, I defined the variable in the very beginning of the document. This seems to work since no error accurs. However, the value of the variable remains "undefined", that text will show up on the screen when the body is executed. This leads to the conclusion that the onload trigger is not activating the init() function. Is this a problem of the onload trigger event?
Received on Saturday, 17 June 2000 21:04:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:54 UTC