当前位置: 代码迷 >> JavaScript >> 链接中的JS 奇效功能代码
  详细解决方案

链接中的JS 奇效功能代码

热度:66   发布时间:2012-10-08 19:54:56.0
链接中的JS 特效功能代码
<a href="#" onclick=document.execCommand("open")>打开</a><br>
<a href="#" onclick=document.execCommand("saveAs")>另存为</a><br>
<a href="#" onclick=document.execCommand("print")>打印</a><br>
<a href="#" onclick=window.close();return false)>关闭本窗口</a><br>
<a href="#" onclick=document.execCommand("selectAll")>全选</a><br>
<a href="#" onclick=location.reload()>刷新</a> <a href="#" onclick=history.go(0)>刷新</a><br> 
<a href="#" onclick=location.replace("view-source:"+location)>查看源文件</a> <br>
<a href="#" onclick=window.open(document.location,"url","fullscreen")>全屏显示</a> <br> 
<a href="#" onclick=window.external.showBrowserUI("OrganizeFavorites",null)>整理收藏夹</a> <br>
<a href="#" onclick=window.external.showBrowserUI("PrivacySettings",null)>internet选项</a> <br>
<a href="#" onclick=settimeout(window.close(),3000)>3秒关闭本窗口</a><br>

?

  相关解决方案