The following links show simple examples of Javascript and their code.
By the way, here is the code to make the above buttons go to places
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function bounce(place) {location = place}
// -->
</SCRIPT>
</HEAD>
<FORM>
<INPUT NAME="whatever" TYPE=Button VALUE="Alert Text string" onClick = bounce("alert_textstring.html")>
</FORM>
Now, try typing in a URL and hit the button
This was done with the addition of the following code from the "Alert Textstring" exercise:
<FORM>
<INPUT NAME="text1" TYPE=Text VALUE="http://">
<INPUT NAME="GoSomewhere" TYPE=Button VALUE="GoSomewhere" onClick="bounce(form.text1.value)">
</FORM>