Dynamically set read-only/read-write for a component on the page
Document. getelementbyid ("custname"). readonly = false;
Document. getelementbyid ("custname"). readonly = true;
Dynamically hide/display a widget on the page
TDID. style. Display = "Block" // TDID is the Control ID... none is not displayed. Block is displayed
TDID. style. Display = "NONE"
Run at intervals
SetTimeout (AA (), time) // The number of milliseconds the specified function can call itself to achieve an infinite loop.
Display the page in the specified rack
<A href = "url" target = "XXX"> // The URL webpage is displayed in the frame with the frame name.
Automatic page loading execution Method
<Body onload = AA ()> // automatically load the AA () method
Trigger event in the drop-down list...
<Select name = "mainresult" id = "maintype" onchange = "selectsubresult (this. Value)">
Get Component Object
VaR A = Document. getelementbyid ("XX") // XX component ID
DWR Methods
Fill in elements in the drop-down list
Dwrutil. addoptions ("XX", P) // XX indicates the drop-down list ID, and P indicates the map object.