您的位置:首页 > Web前端 > JavaScript

Jvascript 做IE功能按钮,打开、另存为。属性、打印、收藏夹等js按钮

2010-01-08 13:07 489 查看
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0>
</OBJECT>
<input onclick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开 name=Button1>
<input onclick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为 name=Button2>
<input onclick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性 name=Button3>
<input onclick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印 name=Button>
<input onclick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置 name=Button4>

<input onclick=window.location.reload() type=button value=刷新 name=refresh>

<input onclick="window.external.ImportExportFavorites(true,'');" type=button value=导入收藏夹 name=Button5>
<input onclick="window.external.ImportExportFavorites(false,'');" type=button value=导出收藏夹 name=Button32>
<input onclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夹 name=Button22>
<br/>

http://www.egacn.com/" title="Replica Watches:">Replica Watches e Stop Discount Swiss Watches Store,http://www.watchstylish.com" href="http://www.watchstylish.com/" target=_blank>Buy Full Quality Popular Luxury Watches at Amazing Price, Your One Stop Discount Swiss Watches Storeline Sale!" href="http://www.yuget.net/" target=_blank>Exclusive Replica Rolex Watches, Tag Heuer Watches Replica, Cartier Watches online Sale!http://www.yuget.nethttp://study.pctoday.net.cn/1_ASP.aspxhttp://study.pctoday.net.cn/Article/IE功能大汇聚-ie按钮.html <input onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type=button value=整理收藏夹 name=Submit2>
<input onclick='window.location="view-source:http://study.pctoday.net.cn/7_Javascript.aspx' type=button value=查看源文件 name=Button7>
<input onclick="window.external.ShowBrowserUI('LanguageDialog', null)" type=button value=语言设置 name=Button6>
<input onclick=history.go(1) type=submit value=前进 name=Submit>
<input onclick=history.go(-1) type=submit value=后退 name=Submit2>
要完成此效果把如下代码加入到<body>区域中

http://www.egacn.com/" title="Replica Watches:">Replica Watches e Stop Discount Swiss Watches Store,http://www.watchstylish.com" href="http://www.watchstylish.com/" target=_blank>Buy Full Quality Popular Luxury Watches at Amazing Price, Your One Stop Discount Swiss Watches Storeline Sale!" href="http://www.yuget.net/" target=_blank>Exclusive Replica Rolex Watches, Tag Heuer Watches Replica, Cartier Watches online Sale!http://www.yuget.nethttp://study.pctoday.net.cn/1_ASP.aspxhttp://study.pctoday.net.cn/Article/IE功能大汇聚-ie按钮.html <input type="button" name="Button" value="点击保存页面" onClick="document.all.WebBrowser.ExecWB(4,1)">
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: