I can’t seem to find the answer in my JavaScript books other than I need to specify the object name to get the output… but I don’t know:
[list=1][*]
what the default name is
how to specify the object name
how to determine what the current object name is using tools
So, if someone could enlighten me, that would be a great post-christmas gift.
Here is my very simple script:
— begin —
[COLOR=Blue]<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html>
<head>
<title> My Attitude</title>
</head>
<script type=”text/javascript” language=”javascript1.2″><!–
function attitudeReturn( ) {
alert( ‘I am trying… ‘ );
window.myAttitude.value= ‘Steve is happy.’;
}
//–></script
<body>
<form method=”post” action=”” name=”document”>
<input type=”text” name=”myAttitude” onclick=”return false;” onmouseup=”attitudeReturn();return false;” >
</form>
</body>
</html>[/COLOR]
— end —