'page' Example : page « Javascript Objects « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Objects » page 
'page' Example

    
<html>
<head>
<style>@page:first background-color: blue; }</style>
<script language="JavaScript">
function function1() {
    var m = document.styleSheets(0).pages(0);
    var n = m.pseudoClass;
    alert(n);
}
</script>
</head>
<body>
<input type="button" value="Click here for the name of the first @page rule" 
onclick="function1();">
</body>
</html>

    
      
      
Related examples in the same category
1.'page' Syntax and Note
2.'page' JavaScript Properties
3.'page' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.