Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
  

OpenURL() Function

Opens 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:

  • Although you can include a URL in the control action or event triggers directly, if you specify the target parameter, the OpenURL() function gives you more control over which browser window, or frame the URL should be opened in.
  • The target parameter is optional and can be left out.


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.


Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy