출처: http://help.dottoro.com/ljrtiivh.php
navigationMode property (history)
Browser support:
Sets or retrieves the navigation type in the history.
Syntax:
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:
|
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. | |
|
The page and scripts will be loaded from cache and processed again when the page is loaded using the back or forward navigation commands. | |
|
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 1:
This example illustrates the use of the navigationMode property:
<head>
<script>
function GetNavMode () {
alert (window.history.navigationMode);
}
</script>
</head>
<body>
<button onclick="GetNavMode ()">Get the navigation mode!</button>
</body>
<script>
function GetNavMode () {
alert (window.history.navigationMode);
}
</script>
</head>
<body>
<button onclick="GetNavMode ()">Get the navigation mode!</button>
</body>
Copy Code |