script at top

liunx

Guest
hey guys i wanted to know how do you keep the script in the head tags at the top of the and still have it working, becaues it keeps saying my objects that are defined in the body of the html code are undefined? i dont want to move the script to the bottom. i want to keep it at the top and still make it work<br />
<br />
<html><br />
<head><br />
<title>Text Tags</title><br />
<script language="JavaScript"><br />
BoldLink.style.cursor="hand";<br />
ItalLink.style.cursor="hand";<br />
UnderLink.style.cursor="hand";<br />
</script><br />
</head><br />
<br />
<body><br />
<h2>Text Tags</h2><br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"Bold.htm" id="BoldLink" target="_self">Bold</a><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"Italic.htm" id="ItalLink" target="_self">Italic</a><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"Underline.htm" id="UnderLink" target="_self">Underline</a><br />
<br />
</body><br />
</html><!--content-->thanx man, well i shoulda told you im a newbie so that kinds of explains it. ive only been working with script and html for a short time. thankx again<!--content-->
 
Back
Top