Function cloneScriptTag

  • Clones a script tag.

    Parameters

    • script: HTMLScriptElement

      script tag to clone

    • Optional newScript: HTMLScriptElement

      optional new script tag to clone into. If not provided a new script tag will be created.

    Returns HTMLScriptElement

Generated using TypeDoc