社区
JavaScript
帖子详情
我想知道JS对IE的内部命令有没有什么等价的语句?
skilledcat
2003-06-23 01:26:09
就是比如我想执行“打开”“另存”等等IE的命令,可不可以把它绑定到按钮上并用JS实现
记得CSDN上好像有一篇这样文章的,怎么找不到了?哪位大虾帮忙贴一下,谢谢了
...全文
41
2
打赏
收藏
我想知道JS对IE的内部命令有没有什么等价的语句?
就是比如我想执行“打开”“另存”等等IE的命令,可不可以把它绑定到按钮上并用JS实现 记得CSDN上好像有一篇这样文章的,怎么找不到了?哪位大虾帮忙贴一下,谢谢了
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
没有工
2003-06-23
打赏
举报
回复
我想应该是这个了. 好经典的.. 我顶.~~~
DFlyingchen
2003-06-23
打赏
举报
回复
这个是不是你要的?
<input type=button value=剪切 onclick=document.execCommand('Cut')>
<input type=button value=拷贝 onclick=document.execCommand('Copy')>
<input type=button value=粘贴 onclick=document.execCommand('Paste')>
<input type=button value=撤消 onclick=document.execCommand('Undo')>
<input type=button value=删除 onclick=document.execCommand('Delete')>
<input type=button value=黑体 onclick=document.execCommand('Bold')>
<input type=button value=斜体 onclick=document.execCommand('Italic')>
<input type=button value=下划线 onclick=document.execCommand('Underline')>
<input type=button value=停止 onclick=document.execCommand('stop')>
<input type=button value=保存 onclick=document.execCommand('SaveAs')>
<input type=button value=另存为 onclick=document.execCommand('Saveas',false,'c:\\test.htm')>
<input type=button value=字体 onclick=document.execCommand('FontName',false,fn)>
<input type=button value=字体大小 onclick=document.execCommand('FontSize',false,fs)>
<input type=button value=刷新 onclick=document.execCommand('refresh',false,0)>
<input type=button value=刷新 onclick=window.location.reload()>
<input type=button value=前进 onclick=history.go(1)>
<input type=button value=后退 onclick=history.go(-1)>
<input type=button value=前进 onclick=history.forward()>
<input type=button value=后退 onclick=history.back()>
<input type=button value=导入收藏夹 onclick=window.external.ImportExportFavorites(true,"http://localhost" ;>
<input type=button value=导出收藏夹 onclick=window.external.ImportExportFavorites(false,"http://localhost" ;>
<input type=button value=整理收藏夹 onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)">
<input type=button value=查看源文件 onclick="window.location = 'view-source:'+ window.location.href">
<input type=button value=语言设置 onclick="window.external.ShowBrowserUI('LanguageDialog', null)">
<input type=button value=加入收藏夹 onclick="window.external.AddFavorite('http://www.meizz.com/','梅花雨中文网')">
<input type=button value=加入到频道 onclick="window.external.addChannel('http://www.meizz.com/' ">
<input type=button value=设成主页 onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.meizz.com/' ">
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
<input type=button value=打开 onclick=document.all.WebBrowser.ExecWB(1,1)>
<input type=button value=另存为 onclick=document.all.WebBrowser.ExecWB(4,1)>
<input type=button value=全选 onclick=document.all.WebBrowser.ExecWB(17,1)>
<input type=button value=属性 onclick=document.all.WebBrowser.ExecWB(10,1)>
<input type=button value=关闭窗口 onclick=document.all.WebBrowser.ExecWB(45,1)>
<input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)>
<input type=button value=直接打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
<input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
js
中的eq
语句
_我不
知道
还可以用
JS
做的 6 件事
本文介绍了JavaScript中六个较为隐蔽的功能,包括Function构造函数、with
语句
、+操作符的数字转换、给函数赋值属性、arguments.callee.caller的使用及void操作符。这些特性虽不常用,但了解它们能帮助开发者更全面地掌握这门语言。
ie 引用公共
js
_
JS
的奇葩语法(一)
本文介绍了一些JavaScript中的奇特语法,如自定义Number原型方法、使用特殊符号调用函数、布尔类型转换及IE版本判断技巧。
ie
js
没有权限_一道奇怪的
JS
面试题(一)
博客探讨了函数声明在判断
语句
中的情况。不同浏览器对此处理不同,IE11将函数声明视为全局且无提升,当作表达式;谷歌和火狐直到函数声明出现,变量才有局部作用,也将函数当成表达式。所有浏览器都把函数声明当表达式,且对全局声明有分歧,建议勿在条件判断中定义函数。
JavaScript深入浅出之
语句
本文深入探讨JavaScript中的
语句
,包括block、var、try catch、function、for...in、switch、循环和with
语句
。强调了try catch的异常处理机制、for...in的注意事项以及with
语句
的缺点和替代方案。
ie includes语法报错_HTML5基础:
JS
有哪些变态语法
本文探讨了JavaScript中的一些不寻常语法,如Number.prototype.add方法、函数自调用的各种形式以及布尔转换技巧。通过实例解析了这些语法的工作原理,包括在IE浏览器中的特殊行为。最后介绍了一个快速判断IE6,7,8的技巧,揭示了
JS
的灵活性和潜在陷阱。 139485164,7337247,Pulsar与Kubernetes集成实战:Operator与高可用部署,['消息队列', 'Kubernetes集成', '分布式系统', 'Pulsar Operator', '数据复制']
JavaScript
87,987
社区成员
224,683
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章