JavaScript Reference/Javascript Methods/back

Материал из Web эксперт
Перейти к: навигация, поиск

"back()" Example

    
<html>
<body>
<script language="JavaScript">
    function function1(){
        history.back(1);
    }
</script>
<input type="button" value="Go back" onclick="function1();">
</body>
</html>



"back()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |history                         window (NN4 only)             |
+----------------+--------------------------------------------------------------+



"back()" Syntax, Parameters and Note

Note:
Loads a visited URL simulating the clicking of the browser"s back button.
    
Syntax:
    
objectName.back(param1)

Parameters:
    param1   Optional; the number of URLs to go back.