Table of Contents Chapter Index Previous Slide Next Slide 349
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