脚本 可以创建 InternetExplorer.Application
// Create Internet Explorer Object
ie = new ActiveXObject("InternetExplorer.Application");
// Define how the window should look
ie.left = 50;
ie.top = 50;
ie.height = 510;
ie.width = 470;
能否创建出 运行 hta 的对象 并进行控制?
// Create Internet Explorer Object
ie = new ActiveXObject("InternetExplorer.Application");
// Define how the window should look
ie.left = 50;
ie.top = 50;
ie.height = 510;
ie.width = 470;
能否创建出 运行 hta 的对象 并进行控制?
var ie = new ActiveXObject("InternetExplorer.Application");
ie.left=15;
ie.top=25;
ie.height=560;//高度
ie.width=535;//宽度
ie.menubar=0;//取消菜单栏
ie.addressbar=0;//取消地址栏
ie.toolbar=0;//取消工具栏
ie.statusbar=0;//取消状态栏
ie.resizable=0;//不允许用户改变窗口大小
ie.visible=1;//窗口可见
ie.navigate("http://www.google.com")
</script>
是想用脚本 创建一个 HTA 对象
而不是 用hta 创建一个 IE对象
不好意思!理解错误!估计不行,创建hta对象,实际上可以理解为创建了一个可执行程序的对象.hta的权限比非本地浏览器权限大的多.
结果就像楼上说的那样,没有权限!
http://msdn.microsoft.com/en-us/library/ms536495(VS.85).aspxHTA是一个对象 但MS未给外部创建方法 所有属性估计只能在HTA内部使用
因为就算用本地脚本宿主 wscript 执行 也没找到方法
是没找到入口