Creates a Script object containing the specified data.

[VBScript]
Public Function CreateScript( _
   ByVal type As ScriptType, _
   ByVal data As String _
) As Script
[JScript]
public function CreateScript(
   type: ScriptType,
   data: String
) : Script;

Parameters

type
A value of ScriptType.
data
The data of the script.

Return Value

The new Script.

See Also

HTMLDocument Object | HTMLDocument Members | DOM Namespace