Partager via


VIEW.scriptFile

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The scriptFile attribute specifies the file names of accompanying JScript files.

        elementID.scriptFile

Possible Values

This attribute is a write-only String with no default value. The file names of multiple JScript files are delimited with semicolons. Leading and following spaces and semicolons should not be present.

Remarks

The code in the specified files can be used by any event handler in the View. Code that is used by event handlers in multiple Views can be placed in a file with the same name as the skin definition file but with a .js extension instead of a .wms extension. This file is loaded automatically and need not be specified in the skin definition file.

Examples

<VIEW id="theView" scriptFile="theScript.js">
</VIEW>

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

VIEW Element