鏈接中的JS 特效功能
文章導(dǎo)讀:
<a href="#" onclick=document.execCommand("open")>打開</a><br>
<a href="#" onclick=location.replace("view-source:"+location)>使用 記事本 編輯</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)>關(guān)閉本窗口</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="javascript:window.external.AddFavorite(,建站學(xué))">添加到收藏夾</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=history.go(1)>前進1</a> <a href="#" onclick=history.forward()>前進2</a><br>
<a href="#" onclick=history.go(-1)>后退1</a> <a href="#" onclick=history.back()>后退2</a><br>
<a href="#" onclick=settimeout(window.close(),3000)>3秒關(guān)閉本窗口</a><br>