Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Player.launchURL method

The launchURL method sends a URL to the user's default browser to be rendered.

Syntax


Player.launchURL(
  URL
)

Parameters

URL [in]

String value representing the URL to launch.

Return value

This method does not return a value.

Remarks

This method only opens webpages using the HTTP or HTTPS protocols.

Windows Media Player 10 Mobile: This method is not supported.

Examples

The following example creates an HTML BUTTON element that, when clicked, displays the Microsoft website in a new browser window. The Player element was created with ID = "Player".



<INPUT  TYPE = "BUTTON"  ID = "GOTOMS"  VALUE = "Microsoft.com"  onClick = "

    /* Open the Microsoft website. */
    Player.launchURL('http://www.microsoft.com');
">



Requirements

Version

Windows Media Player version 7.0 or later.

DLL

Wmp.dll

See also

Player Object

 

 

Show: