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






'pages' Example

    
<html>
<head><style type="text/css" id="myStyle">
@page:first {font-size:18pt; color:blue;}
@page:left {font-size: 14pt;}
@page:right {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