Methods

  • Activates the window.

    Returns void

  • Navigates one page back in the history, if possible.

    Returns void

  • Returns whether the history contains any previous pages.

    Returns boolean

  • Returns whether the history contains any next pages.

    Returns boolean

  • Closes the tab.

    Returns void

  • Executes the given script.

    Parameters

    • script: string

      The script to be executed.

    Returns void

  • Navigates one page forward in the history, if possible.

    Returns void

  • Returns whether the tab is active.

    Returns boolean

  • Returns the muted state.

    Returns boolean

  • Returns the zoom state.

    Returns number

  • Navigates to a given URL.

    Parameters

    • url: string

      The URL to be navigated to.

    Returns void

  • Navigates to the home page.

    Returns void

  • Subscribes the closed event of this object, which will be fired when this has been closed,

    Parameters

    • callback: (() => void)

      The callback which will be invoked when this has been closed.

        • (): void
        • Returns void

    Returns EventSubscription

  • Reloads the current page.

    Returns void

  • Sets the muted state.

    Parameters

    • muted: boolean

      The muted state to be set.

    Returns void

  • Sets the zoom state.

    Parameters

    • zoom: number

      The zoom state to be set.

    Returns void

  • Stops the loading of the current page.

    Returns void

Events

  • Registers a callback which will be triggered when the page load results in an error.

    Parameters

    • callback: ((url: string, errorCode: number, errorName: string) => void)

      The callback which will be triggered when the page load results in an error.

        • (url: string, errorCode: number, errorName: string): void
        • Parameters

          • url: string
          • errorCode: number
          • errorName: string

          Returns void

    Returns EventSubscription

  • Registers a callback which will be triggered when a page has completed loading.

    Parameters

    • callback: ((newUrl: string) => void)

      The callback which will be triggered when a page has completed loaded.

        • (newUrl: string): void
        • Parameters

          • newUrl: string

          Returns void

    Returns EventSubscription

  • Registers a callback which will be triggered when a new page is being loaded.

    Parameters

    • callback: ((newUrl: string) => void)

      The callback which will be triggered when a new page is being loaded.

        • (newUrl: string): void
        • Parameters

          • newUrl: string

          Returns void

    Returns EventSubscription

Generated using TypeDoc