DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> 關於JavaScript >> js實現浏覽器的各種菜單命令比如打印、查看源文件等等
js實現浏覽器的各種菜單命令比如打印、查看源文件等等
編輯:關於JavaScript     

復制代碼 代碼如下:
input type="button" onclick="document.execCommand('open')" value=打開
input type="button" onclick="document.execCommand('saveas')" value=保存
input type="button" onclick="document.execCommand('print')" value=打印
input type="button" onclick="document.execCommand('selectall')" value=全選
input type="button" onclick="location.replace('view-source:'+location)" value=源文件
input type="button" onclick="window.external.ShowBrowserUI('PrivacySettings',null)" value=安全選項
input type="button" onclick="window.external.ShowBrowserUI('LanguageDialog', null)" value=語言設置
input type="button" onclick="window.external.AddFavorite(location.href, document.title)" value=加入收藏夾
input type="button" onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" value=整理收藏夾
input type="button" value=刷新 name=refresh onclick="window.location.reload()">
input type="button" value=導入收藏夾 onclick=window.external.ImportExportFavorites(true,'');
input type="button" value=導出收藏夾 onclick=window.external.ImportExportFavorites(false,'');

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved