■開啟■ <input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=開啟> <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> ■另存新檔■ <input name=Button onClick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存新檔><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> ■屬性■ <input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=屬性><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> ■列印■ <input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=列印><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> ■版面設定■ <input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=版面設定><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> ■重新整理■ <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=後退> <Script Language=Jscript> alert(clipboardData.getData('text')) //取得當前的剪下版內容 window.clipboardData.setData('text','指定資料') //自訂剪下版中的內容 alert(clipboardData.getData('text')) //在次取得當前剪下版內容 </Script> <BODY> <script> function copyToClipBoard() { var clipBoardContent=window.document.title; clipBoardContent+='/r/n' + window.document.location.href; window.clipboardData.setData("Text",clipBoardContent); alert("複製成功,請粘貼到你的QQ/MSN上推薦給你的好友!/r/n/r/n內容如下:/r/n" + clipBoardContent); } </script> <INPUT title='點擊複製標題和地址到剪貼版,直接在MSN/QQ上粘貼即可.' type=button value='點擊複製本頁地址,傳給QQ/MSN上的好友' onclick='copyToClipBoard()'> </BODY> <script> function oCopy(obj){ obj.select(); js=obj.createTextRange(); js.execCommand("Copy") } </script> <input name="intext" id="intext" value="複製的內容" size="80" maxlength="200"> <input type=button value="複製" onclick="oCopy(intext);" /> <script language="javascript"> function copyText(id) { try{ var targetText = document.getElementById(id); targetText.focus(); targetText.select(); var clipeText = targetText.createTextRange(); //if (clipeText!=null) alert(clipeText.htmlText); clipeText.execCommand("Copy"); }catch(e){} } </script> <form> <input type="text" id="sdfa" value="http://www.souv.cn"> <input type="button" value="複製" onclick="copyText('sdfa');this.value='完成';this.disabled='true'"> </form |