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,'');
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章
R.E.P.O.能量晶体解释及其做什么(黄色晶体)
3 周前
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
3 周前
By 尊渡假赌尊渡假赌尊渡假赌
刺客信条阴影:贝壳谜语解决方案
1 周前
By DDD
R.E.P.O.如果您听不到任何人,如何修复音频
3 周前
By 尊渡假赌尊渡假赌尊渡假赌
在哪里可以找到原子中的起重机控制钥匙卡
1 周前
By DDD

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

在网页中使用本地安装的字体文件最近,我从网上下载了一种免费字体,并成功将其安装到了我的系统中。现在...

如何在爬虫时获取58同城工作页面的动态数据?在使用爬虫工具爬取58同城的某个工作页面时,可能会遇到这样�...

CSS自定义resize符号的方法与背景色统一在日常开发中,我们经常会遇到需要自定义用户界面细节的情况,比如调...

使用CSS实现响应式布局当我们希望在网页设计中实现不同屏幕尺寸下的布局变化时,CSS...

在Node.js环境中使用request库获取HTML文本内容时出现编码异常的原因及解决方案在使用Node.js开发过程中,经常需�...
