OpenURL() FunctionOpens a specified URL in the current widow, a specific browser window or a frame. Syntax:OpenURL(url,target) Parameters: url - URL to open. target - Target browser window or frame. Possible values: _blank - Load the link into a new unnamed window. _parent -Load the link into the immediate parent of the document the link is in. _self - Load the link into the same window the link was clicked in. _top - Load the link into the full body of the current window. <window_name> - A named HTML frame. If no frame or window exists that matches the specified target name, a new window is opened for the specified link. Remarks:
Example: <XML id="toolbar"> <toolbar caption="OpenURL() Example"> <control type="toolbar"> <button caption="Open URL in New Window" action="OpenURL('http://www.trellian.com/worldtime',_blank"> </button> </control> </toolbar> </XML> In this example a toolbar with a single button is created. When clicked, the Menu() functions displays a popup menu with the id mymenu. The popup menu to be displayed is defined in the menudefinitions block. |