getObj( id )
Â
This function returns a reference to the object with the specified id on the screen.
This function call is equivalent to the native JavaScript syntax:
document.getElementById(id);
Parameters:
id – element identifier – String;
Example:
A reference to a textbox object on the screen can be returned by writing this line of code:
var textbox = getObj('I_5_10');
After a reference is obtained, the object’s methods and property can be accessed through native JavaScript. For example:
textbox.style.backgroundColor = 'yellow'; // highlight textbox
textbox.value = ''; // clear textbox*
textbox.focus(); // place cursor within textbox
Â