posts - 64,  comments - 9,  trackbacks - 0
          14個經典的Javascript代碼(常見的操作代碼:另存、打開、刷新等)
          ■打開■ 
            <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=後退>

           

          posted on 2011-06-23 11:40 super_nini 閱讀(307) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2011年6月>
          2930311234
          567891011
          12131415161718
          19202122232425
          262728293012
          3456789

          常用鏈接

          留言簿

          隨筆檔案

          文章檔案

          相冊

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 巴东县| 茶陵县| 乌鲁木齐县| 邮箱| 和平区| 遂宁市| 房产| 吉安县| 万山特区| 繁峙县| 桃江县| 昭通市| 乐都县| 曲沃县| 九台市| 东乌| 突泉县| 木里| 延津县| 米脂县| 弥勒县| 井冈山市| 独山县| 横峰县| 满城县| 专栏| 冷水江市| 绥滨县| 拜城县| 鹤壁市| 石景山区| 岫岩| 巢湖市| 银川市| 白山市| 许昌县| 云安县| 马龙县| 兴海县| 嘉黎县| 和田市|