ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. canBrowserNavigateBack

Function

canBrowserNavigateBack

ClientBrowserIdentical to MTA:SA

Checks whether the browser history has a previous page.

Syntax

bool canBrowserNavigateBack(browser webBrowser)

Arguments

webBrowserbrowser
The browser.

Returns

true if it can go back.

Example

bindKey("backspace", "down", function()
    if canBrowserNavigateBack(browser) then
        navigateBrowserBack(browser)
    end
end)

See also