站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题"打开,另存为,属性,打印"等14个JS代码

"打开,另存为,属性,打印"等14个JS代码

摘要: "打开,另存为,属性,打印"等14个JS代码


■打开■
<input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开>

■另存为■
<input name=Button onClick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为>
■属性■
<input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性>
■打印■
<input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印>
■页面设置■
<input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置>
■刷新■
<input type=button value=刷新 name=refresh onclick="window.location.reload()">
■导入收藏■
<input type="button" name="Button" value="导入收藏夹" onClick=window.external.ImportExportFavorites(true,);>
■导出收藏■
<input type="button" name="Button3" value="导出收藏夹" onClick=window.external.ImportExportFavorites(false,);>
■加入收藏■
<input name=Button2 onclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夹>
■整理收藏夹■
<input name=Submit2 onclick="window.external.ShowBrowserUI(OrganizeFavorites, null)" type=button value=整理收藏夹>
■查看原文件■
<input name=Button onclick=window.location = "view-source:" + window.location.href type=button value=查看源文件>
■语言设置■
<input name=Button onclick="window.external.ShowBrowserUI(LanguageDialog, null)" type=button value=语言设置>
■前进■
<input name=Submit onclick=history.go(1) type=submit value=前进>
■后退■
<input name=Submit2 onclick=history.go(-1) type=submit value=后退>

</td> </tr> <tr> <td vAlign=top align=left height="100%">
↑返回目录
前一篇: 无提示框关闭IE窗口
后一篇: 关于在页面中解决打印的几个问题