CreateScript Method



 
The CreateScript method creates a new script object.


Syntax

    [obj=] SiteCafe.CreateScript()
    
Return Value
    Returns an object that is equivalent to the Script object.

    The SiteCafe object will be automatically inserted into the new script.
Remarks
    None.
Examples
    The following example creates a new script and adds a property.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    newprop = "New property";
    newScript = SiteCafe.CreateScript();
    newScript.AddDispatch("newname", newprop);
    alert(newScript.Dispatch.newname);
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top