HTML/JavaScript Framework

This is an example framework that will show you have to read and write values from HTML input tags in JavaScript. When you press the button the id values of all three input values will be sent to the function myButtonClick in the onclick event of the button input tag.

Then each input tag is changed as an example. The string 123 is concatenated to the name field, ten is added to the age and one is added to the allowance value.

Note that myButtonClick makes use of utility functions in get.js to make it easy to read values from the input tags. Function such as getString, getInt, and getFloat are all functions in get.js

Name: Age: Allowance:

Show the get.js file.
Show the Framework.js file.
Just save the .js files to the same folder as your HTM file.