请问Javascript中有没有打开浏览器的另存为对话框的函数?就像window.print()打开打印对话框。 <script>document.execCommand('saveas');</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>document.execCommand('saveas');</script>没有专门的函数 <input type=button value=保存 onclick=document.execCommand('SaveAs')><input type=button value=另存为 onclick=document.execCommand('Saveas',false,'c:\\test.htm')><OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT><input type=button value=另存为 onclick=document.all.WebBrowser.ExecWB(4,1)> 大虾,不是保存html文件本身,我的意思是想保存为Web页。 另外,我查了一下Javascript宝典,好像execCommand方法里没有'Saveas'的详细说明,不知那里有相关文档呢? EXTjs:这两个表单框有什么区别呢?:) document.all(!args).style.display=""; 我用div做了一个浮动,但是我想让它随滚动条和移动而移动,怎么做啊? 求js写的实用的时间控件! 三级联动菜单的值(在线等,马上结) 我的系统为什么越跑越慢? fullscreen的属性问题 如何读取列表框可以多选后的值? JS是否可以实现特定字体的控制?(txt文件中) google地图,框选是一个矩形,已知东北西南经纬度,求西北东南经纬度 新手问一个简单的问题!! 打印:document.execCommand('print','true','true')的使用?
document.execCommand('saveas');
</script>
没有专门的函数
<input type=button value=另存为 onclick=document.execCommand('Saveas',false,'c:\\test.htm')><OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
<input type=button value=另存为 onclick=document.all.WebBrowser.ExecWB(4,1)>