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:
This function sets the text of the current browser's main window, or a specified toolbar HTML control. It can be used to display a plain text message or HTML.
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.