Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Control object > Methods

JavaScript API: Control object > reset()

Scroll Prev Next More

 

Sets the control value to the original one.

Syntax

ctrl.reset();

Arguments

No arguments.

Return value

No return value.

Example

Set the control value to the original one using the JavaScript OnLoad event:

 

var ctrl = Runner.getControl(pageid, 'Make');
ctrl.reset();

See also:

JavaScript API: Control object > getControl()

JavaScript API: Control object > clear()

JavaScript API: Control object > hide()

JavaScript API: Control object > setDisabled()

Events: JavaScript OnLoad

JavaScript API: Control object

JavaScript API