Eric Marthinsen
06-23-2006, 11:20 PM
Can anyone explain why this isn't working:
<html>
<head>
<title>Test Page</title>
<script language="javascript" type="text/javascript">
function Init()
{
var foo = document.getElementById("title");
foo.InnerText = "HELLO";
}
</script>
</head>
<body onload="Init();">
<h1 id="title">Title</h1>
</body>
</html>
<html>
<head>
<title>Test Page</title>
<script language="javascript" type="text/javascript">
function Init()
{
var foo = document.getElementById("title");
foo.InnerText = "HELLO";
}
</script>
</head>
<body onload="Init();">
<h1 id="title">Title</h1>
</body>
</html>