Eburris
10-06-2003, 02:00 PM
hello. I am currently trying to learn HTML and Java script. I am 14 years old and this is what i want to do for my science fair project. anyway here is the problem.
I was working out of the book "HTML and Web Design" by Kris Jamsa,m Konrad King, and Andy Anderson on biginning using buttons and functions. they gave this code to insert into the web editor and i did so:
<html>
<head>
<body>
<form>
<input type="button" value="Click Me!"
onClick="youClickedIt ()">
</form>
</body>
</head>
</html>
this was supposed to show up as a button that says click me and when you click it it was supposed to say you clicked it. But the first time i tried it i clicked the button and it gave me a runtime error stating an object was undefined. the second time as soon as the browser came up it gave me a runtime error on line five stating "Object expected" what is my scripts' problem?
and i know this is a newbie question but i am interested in learning this.
thank you for your time
I was working out of the book "HTML and Web Design" by Kris Jamsa,m Konrad King, and Andy Anderson on biginning using buttons and functions. they gave this code to insert into the web editor and i did so:
<html>
<head>
<body>
<form>
<input type="button" value="Click Me!"
onClick="youClickedIt ()">
</form>
</body>
</head>
</html>
this was supposed to show up as a button that says click me and when you click it it was supposed to say you clicked it. But the first time i tried it i clicked the button and it gave me a runtime error stating an object was undefined. the second time as soon as the browser came up it gave me a runtime error on line five stating "Object expected" what is my scripts' problem?
and i know this is a newbie question but i am interested in learning this.
thank you for your time