OpenURL

Description:

baOpenURL opens an internet document, using the default browser.

Platforms:

Windows and Macintosh

Usage:

Result = baOpenURL( URL , State )

Arguments:

String, string.
URL is the name of the document to open.
State is the window state to open the browser with.
On Windows, can be one of these:
    "Normal"shows in its usual state.
    "Hidden"is not visible.
    "Maximised"shows as a maximised window.
    "Minimised"shows as an minimised icon.
On Macintosh, State is ignored.

Returns:

Integer.
Returns 1 if successful, else 0. Success means that there is a browser associated with .htm files, and it can be started. If opening a local file, the function will return 0 if the file does not exist.

Examples:

Director:
OK = baOpenURL( "http://www.macromedia.com" , "maximised" )

Authorware:
OK := baOpenURL( "http://www.macromedia.com" , "maximised" )
 

Notes:

The URL can be any valid internet URL or a local HTML file.

On Macintosh, Internet Config will be used to determine the default browser.