'onBeforePrint' Example : onBeforePrint : Event onMethod JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event onMethod » onBeforePrint »

 

'onBeforePrint' Example



    
<head>
<script language="JavaScript">
   function function1() {
       window.print()
    
</script>
</head>
<body onbeforeprint="alert('This page is about to be printed')">
    <p>Some body Content to print.</p>
    <input type="button" value="Print" onclick="function1()">
</body>
</html>

    
      
      



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event onMethod
» onBeforePrint