Table of contents
Chapter index
Previous slide
Next slide
411
Accessing fields from JavaScript
Writing program scripts with JavaScript
Accessing fields from JavaScript
Each interface field is a JavaScript variable
Read a variable to access the field value
Write a variable to change the field value
lastval = bounceHeight; // get field bounceHeight = newval; // set field