Various simpler things in JavaScript
Getting input from the user:
type example script the button <form>
<input value="any" type="button" onclick="alert('hello');">
</form>the input field <form>
<input name="yep"><br>
<input type="button" value="go" onclick="alert(yep.value)">
</form>
Giving feedback to the user:
type example script the alert alert <a href="#"
onclick="alert('simple, que no')">
alert</a>the input field <form>
<input name="yep" size="5"
onclick="yep.value='aha!' ">
</form>the input field <form>
<input name="there" size="5">
<input type="button" value="here"
onclick="there.value='¿eñe?' ">
</form>the picture ![]()
<a href="#a"
onclick="q.src='pix/c9b.jpg'">
<img src="pix/c9.jpg" name="q">
</a>
Clickable things:
type example script the link link <a href="#a" onclick="alert('link clicked')">
link
</a>the button <form>
<input value="any" type="button" onclick="alert('hello');" >
</form>the picture ![]()
<a href="#b" onclick="alert('hi')">
<img src="pix/c9.jpg">
</a>the cell of a table ordinary cell <td onclick="alert('not netscape')" >
ordinary cell
</td>the input field <form>
<input onfocus="value='not onclick';" >
</form>