setUrlRedirect method

Replaces a URL with another to cause a redirect.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

DiagnosticsResources.setUrlRedirect(sourceUrl, replacementUrl);

Parameters

  • sourceUrl [in]
    Type: DOMString

    Original URL.

  • replacementUrl [in]
    Type: DOMString

    New destination URL.

Return value

This method does not return a value.

See also

DiagnosticsResources