I'm sure this is the simplest bit of code you'll see all day; I feel silly asking for help on this, but I've been staring at it for an hour and am going crazy because I can't figure out WHY it won't work.
index.html
<html>
<head>
<SCRIPT type="text/javascript" src="include.js"></SCRIPT>
</head>
<body onload="test()">
<p id="center"></p>
</body>
</html>
include.js
function test()
{
document.getElementByID('center').innerHTML="testing";
}
When I open index in a browser window, it just gives me a blank page. I tried putting an alert window in the first line of the test() function, and it alerted, so it's getting that far. If I put the alert after the "testing" line, it doesn't happen.
Thanks in advance.