Lingo Dictionary > G-K > gotoNetPage |  |

gotoNetPage

Syntax

    gotoNetPage "URL", {"targetName"}

Description

Command; opens a Shockwave movie or another MIME file in the browser.

Only URLs are supported as valid parameters. Relative URLs work if the movie is on an HTTP or FTP server.

The`targetName` argument is an optional HTML parameter that identifies the frame or window in which the page is loaded.

| If `targetName` is a window or frame in the browser, `gotoNetPage` replaces the contents of that window or frame.
| If `targetName` isn't a frame or window that is currently open, `goToNetPage` opens a new window.
| If `targetName` is not included, `gotoNetPage` replaces the current page, wherever it is located.

In the authoring environment, the `gotoNetPage` command launches the preferred browser if it is enabled. In projectors, this command tries to launch the preferred browser set with the Network Preferences dialog box or `browserName` command. If neither has been used to set the preferred browser, the `goToNetPage` command attempts to find a browser on the computer.

Note: Executing any network Lingo operations concurrently with a Shockwave Audio (SWA) stream can cause interruptions in the playback of the SWA stream.

Example

This script loads the file Newpage.html into the frame or window named frwin. If a window or frame in the current window called frwin exists, that window or frame is used. If the window frwin doesn't exist, a new window named frwin is created.

    on keyDown
    	gotoNetPage "Newpage.html", "frwin"
    end

Example

This handler opens a new window regardless of what window the browser currently has open:

    on mouseUp
    	goToNetPage "Todays_News.html", "_new"
    end

See also

`browserName()`, `netDone()`