SearedIce
07-05-2003, 10:30 PM
<html>
<head>
<script type="javascript">
function hexx()
{
document.body.bgcolor = document.a.b.value;
setTimeOut(1000, "hexx()");
}
</script>
</head>
<body onLoad="hexx()">
<form name="a">
<input name="b" type="textbox" value="000000">
</form>
</body>
</html>
How come this gives me an Object Expected error on line 11, the <body> line?
My IE has been giving me problems with all my javascripts lately...I've reset all defaults incase anything was accidentally changed but stuff still isn't working. One time the script would work when I had type="text/javascript" but with type="javascript" it would not...
~John
<head>
<script type="javascript">
function hexx()
{
document.body.bgcolor = document.a.b.value;
setTimeOut(1000, "hexx()");
}
</script>
</head>
<body onLoad="hexx()">
<form name="a">
<input name="b" type="textbox" value="000000">
</form>
</body>
</html>
How come this gives me an Object Expected error on line 11, the <body> line?
My IE has been giving me problems with all my javascripts lately...I've reset all defaults incase anything was accidentally changed but stuff still isn't working. One time the script would work when I had type="text/javascript" but with type="javascript" it would not...
~John