0

hello
i think i made small mistake in the following code
but i dont know what it is exactly:

<script language="JavaScript">
function doType(id,typewhat)
{
    var doc=document.getElementById(id);
    doc.innerHTMl = typewhat;
}
</script>

could u plz help??

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by Pro2000
1

Simply you need to correct the line 5. You have to type the following instead:

doc.innerHTML = typewhat;

Just capitalize the letter "L" in innerHTML.

1

Also the script tag should be written as...

<script type="text/javascript"> ... </script>

The attribute language has been deprecated a while now.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.