Web Teacher Software
web database
Javacript 
Tutorial
CGI tutorial
web 
database consulting
web database training
contact us about web 
database software
press
Hosted Database Solutions
webteacher home
Web Teacher Consulting

javascript tutorial graphic


Take this course LIVE in Southern California
Rob Young will be leading 'JavaScript for the Total Non-Programmer' at Irvine Valley College this September. The class is offered in 2 sections:

1. Tue (9/23) and Thu (9/25) 6p-9p
2. Saturday (9/25) 9a-4p

Click here to register

Here is a look at the script. See if you can trace how it works.


<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

function changecolor(code) {

document.bgColor=code
}

// - End of JavaScript - -->
</SCRIPT>

</HEAD>
<BODY>

<form>
<input type="button" name="Button1" value="RED" onclick="changecolor('red')">

<input type="button" name="Button2" value="GREEN" onclick="changecolor('green')">

<input type="button" name="Button3" value="BLUE" onclick="changecolor('blue')">

<input type="button" name="Button4" value="WHITE" onclick="changecolor('white')">

</form>

</BODY>
</HTML>

Explain how it worksSkip the explanation

Home | WebData - Web Database Software | Javascript | CGI | Consulting | Map Builder | Contact Us | The Press Room