'pages' Example : pages « Javascript Collections « JavaScript Reference

'pages' Example

    
<html>
<head><style type="text/css" id="myStyle">
@page:first {font-family:Times New Roman; font-size:18pt; color:blue;}
@page:left {font-family: Verdana; font-size: 14pt;}
@page:right {font-family: Verdana; font-size: 14pt;}
</style>
</head>
<body>Body content.
<script language="JavaScript">
    var m = document.styleSheets(0).pages.length; 
    alert(m);
</script>
</body>
</html>

    
      
      








Related examples in the same category

1.'pages' Syntax Parameters and Note
2.'pages' JavaScript properties and JavaScript methods
3.'pages' is applied to