Click to See Complete Forum and Search --> : object expected


chadypu
08-11-2003, 06:21 PM
when you get an error on line 1 that says object expected what does it mean?

Charles
08-11-2003, 06:24 PM
It means that on the first line you have treated somthing that is not an object as if it were an object. More than that one cannot say without access to the offending first line.

chadypu
08-11-2003, 06:26 PM
but the first line is <HTML>
unless you are talking about the first line of javascript which is just a function whatever()

Charles
08-11-2003, 06:30 PM
1) If the first line is <HTML> then your page is invalid.

2) Post a URL to the page!!!!!

chadypu
08-11-2003, 06:34 PM
okay, i just learned frontpage is not a good thing to test scripts with, im just gonna view them localy now

it tells me that redwhite is not defined, what could be the problem?

<html>
<head>
<Script Style="Javascript">
function redwhite()
{
document.write("<Style Type="text/css">")
document.write("BODY {Background:red; color:white}")
document.write("A:link {color: blue;}")
document.write("A:active {font-size:h4; text-decoration: underline}")
document.write("A:Visted {color:purple;}")
document.write("</Style>")
}
</SCRIPT>
</head>
<body>
<h1>What theme would you like?</h1>
<A Href=javascript:redwhite><b>Chadypu.com1</A></b><br>
<A Href=javascript:bluewhite><b>Chadypu.com2</A></b>
<br>test text
<br>[test]
</body>

</html>

it says redwhite is not defined when i click on the top link