Forum Moderators: open
I can only think I'm being really silly here, but why doesn't this work..?
<html>
<head>
<script>
function read_it() {
alert("hello"); //works
alert(document.GetElementById['bob'].innerHTML); //returns 'has no properties' in FF error console
}
</script>
</head>
<body>
<div id="bob"><p>this is some text</p></div>
<input type="submit" value="click" onclick="read_it()" />
</body>
Thanks!
I am sure our friend Dabrowski meant to say...
They should be parenthesis brackets rather than square brackets. ;)
birdbrain
No, I was using the technical term! ;)
[edited by: Fotiman at 7:24 pm (utc) on Jan. 30, 2008]