You are here: Reference > JavaScript > client-side > browser > properties > navigationMode (history)

navigationMode property (history)

Browser support:
Sets or retrieves the navigation type in the history.

Syntax:

object.navigationMode;
You can find the related objects in the Supported by objects section below.
This property is read/write.

Possible values:

String that specifies the navigation mode.
One of the following values:
automatic
Default. Opera automatically selects an appropriate history navigation mode (compatible or fast). The 'fast' navigation can be used for documents that do not listen for the onload and onunload events.
compatible
The page and scripts will be loaded from cache and processed again when the page is loaded using the back or forward navigation commands.
fast
Pages will be loaded in the exact state that they were in when you left the page. In this case, the onload and onunload events are not fired.
Default: automatic.

Example HTML code 1:

This example illustrates the use of the navigationMode property:
<head>
    <script type="text/javascript">
        function GetNavMode () {
            alert (window.history.navigationMode);
        }
    </script>
</head>
<body>
    <button onclick="GetNavMode ()">Get the navigation mode!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

User Contributed Comments

Post Content

Post Content