'page' Example : page : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » 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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» page