手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >javascript 打印页面代码
javascript 打印页面代码
摘要:复制代码代码如下:javascript打印页面打印设置标题这里是要打印的内容hellohellohellohellohello

复制代码 代码如下:

<html xmlns="http://www.w3.org/1999/xhtml" >

<head>

<title>javascript打印页面</title>

<script type="text/javascript"><></script>

</head>

<body>

<div id="divOperate">

<a href="javascript:void(0);" href="javascript:void(0);">打印</a>

<object id="WebBrowser" width="10" height="10" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>

</div>

<div id="divPrint">

<div>设置标题</div>

<table border="1">

<tr>

<td>这里是要打印的内容</td>

<td>hello</td>

<td>hello</td>

</tr>

<tr>

<td>hello</td>

<td>hello</td>

<td>hello</td>

</tr>

</table>

</div>

</body>

</html>

【javascript 打印页面代码】相关文章:

Javascript进制转换实例

用JavaScript实现页面重定向功能的教程

学习javascript文件加载优化

javascript正则表达式总结

javascript清空table表格的方法

javascript中eval解析JSON字符串

谈一谈javascript闭包

javascript原型模式用法实例详解

JavaScript实现身份证验证代码

javascript无刷新评论实现方法

精品推荐
分类导航