User manual - Scripting_Guide

NAURTECH SMART CLIENTS FOR WINDOWS CE AND POCKET PC
CETerm Scripting Guide Page 29
result = AddMetaItem( target, content )
Add a CETerm <META> tag element to the current web page. This is typically
used to add custom <META> elements which define key mappings or other
custom behaviors. See the Naurtech Web Browser Programming Guide for
documentation on custom <META> tags. Returns 0 for success, non-zero for
failure. After adding META elements that change the values of information icons
you may need to use CETerm.PostIDA( “IDA_INFO_REFRESH”, 0 ) to apply the
changes.
result = Navigate( URL )
Navigate the browser session to the specified URL. Returns 0 for success, non-
zero for failure.
result = RunScript( script )
Execute the specified script in the browser Javascript engine. Returns 0 for
success, non-zero for failure.
Properties
The following read-only properties are available.
Property Description Values
Document Document object of the current web page.
The DOM of the page may be examined
and altered via this object. WARNING:
Use a local variable to hold this reference
to minimize memory usage. (read only)
object
DocLoaded Returns true if document is loaded. (read
only)
true,
false
3.5 THE MESSAGE OBJECT
The Message object provides feedback to the user while a script is running. This
object displays a dialog with a text message, an optional progress bar, and an
optional script cancellation button. The progress value can be set by the script