Im sure its simple for you guys, but Im lost. thank you for showing me where I am going wrong.
<html>
<head>
<title>Trying out new shit!</title>
<script type="text/javascript">
var nform = document.forms[0];
var str = nform.tb1.value; //shouldnt this assign the value of
//the text box to the variable?
// Im getting object undefined error
document.write(str.fontcolor=rgb(255,0,0))
</script>
</head>
<body>
<Form action="javascript" method="Post" enctype="text/plain" >
<input type="text" name="tb1" value="" size="10">
</form>
</body>
</html>