HTML Apps -> SelfNavigate
This function navigates an HTML component or gadget to a specified URL. Optionally, the width of the component can also be changed.
SelfNavigate(url, newWidth)
| Parameter |
Description |
Range |
Type |
| url |
The URL for the HTML component or gadget window. |
not null or empty |
string |
| newWidth |
The new width (in pixels) for the HTML component or for the gadget window. This parameter is optional. |
>0 |
int |
This example contains an icon that when clicked, will navigate you to the URL of the main frame. This example is a Gadget Window that contains a button and two inputs fields (width of the Gadget Window and New URL). When the button is clicked upon, the Gadget Window width will be changed according to the width field and you will be navigated to the new URL.
Note: This Gadget example is represented by the icon in the demo toolbar.
| | |