js打印本页面

 
 
 
 
 
<script language="javascript">
    function PrintIt() {
        window.print()
    } 
</script> 
 
<input type="button" style="COLOR:red; border:'0'"value="打印" onclick="PrintIt()" 
onmouseover="this.value='打印该页'" onmouseout="this .value='打印'"> 
posted @ 2014-03-04 18:18  914556495  阅读(243)  评论(0编辑  收藏  举报