| Jean LeLoup & Bob Ponterio
SUNY Cortland © 2008 |
Syntax must be precisely correct, down to the semi-colon.
Here is another use of JavaScript. Can you figure out what this does?
href="Javascript:void(0)" onclick="monatext.value='eyes';"
A couple of clues: href just means that something is in a clickable link. "monatext" is the name of a textbox.
In another lesson we will learn how to use this command to put feedback into a text box from a drop down box or radio button.
Hunt around her face to find something to click on.