Director Javascript Library (Document! X Sample)
(Global) Namespace / Router type / init Method
This value will be used if '/#/' is not found in the URL. (e.g., init('/') will resolve to '/#/', init('foo') will resolve to '/#foo').
In This Topic
    init Method
    In This Topic
    Initialize the router, start listening for changes to the URL.
    Syntax
    var instance = new Router();
    
    // Parameters
    var r; // Type:  String
    
    instance.init(r);
    function init( 
       r : String
    ) : void;

    Parameters

    r
    This value will be used if '/#/' is not found in the URL. (e.g., init('/') will resolve to '/#/', init('foo') will resolve to '/#foo').
    Browser Compatibility
    8
    5
    5
    See Also

    Reference

    Router type