SetText() FunctionSets the browser text Syntax:SetText(text) SetText(id,text) Parameters: id - specifies the ID of a HTML control to write text to. If left out, the current browser window is used. text - text to set. Can include HTML. Remarks:
Example: <xml id="toolbar"> <control type="toolbar"> <button id=test caption="Click Me" action="SetText('$USERAGENT<bt>$URL')"></button> </control> </xml> The above code creates a toolbar with a single button. When the button is clicked, the Browser's user agent string and current URL are displayed in the browser's main window. See Also: SetStatusText() Function Compatibility The id parameter is supported by version 2.3.2 and above. |