415

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
  • Multi-value data types are arrays
  • lastval = bounceHeight;    // get field
    
    bounceHeight = newval;     // set field