JavaScript Reference/Javascript Properties/nextPage

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

"nextPage" Example

    
<html>
<head>
<script language="JavaScript">
function function1() {
    var m = event.nextPage;
    alert("If no at-rule page was specified, the value is an empty string: \n"+"""+m+""");
}
</script>
</head>
<body bottommargin="150">
    <input type="Button" id="myB" value="Click here" onClick="function1();">
</body>
</html>



"nextPage" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |event                                                         |
+----------------+--------------------------------------------------------------+



"nextPage" Possible Values

Possible Values
left 
right. 
If no @page rule has been specified, the return value is an empty string.



"nextPage" Syntax and Note

Note:
Read-only property. 
Only applicable when the browser uses a print template behavior, 
and it returns the position of the next page. 
    
Syntax:
    
window.event.nextPage