欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

js實(shí)現(xiàn)瀏覽器的各種菜單命令比如打印、查看源文件等等

 更新時(shí)間:2013年10月24日 09:51:11   作者:  
瀏覽器的各種菜單命令比如打印、查看源文件、加入收藏等等,這些在js中時(shí)完全可以實(shí)現(xiàn)的,本文搜集整理了一些,感興趣的朋友可以參考下

復(fù)制代碼 代碼如下:

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=安全選項(xiàng)
input type="button" onclick="window.external.ShowBrowserUI('LanguageDialog', null)" value=語言設(shè)置
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=導(dǎo)入收藏夾 onclick=window.external.ImportExportFavorites(true,'');
input type="button" value=導(dǎo)出收藏夾 onclick=window.external.ImportExportFavorites(false,'');

相關(guān)文章

最新評(píng)論