JS定时执行一个URL

时间:2015/12/3 22:14:00来源:互联网 作者:flyso 点击: 953 次

var html = "";
html += "<html><head><title>运行窗口</title></head><body>";
  html += "<font face=verdana></font>";
  html += "</body></html>";

// 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;
ie.menubar = 0;
ie.toolbar = 0;

// Set the browser to a blank page
ie.navigate("flyso.cn");

// Show the browser
ie.visible=1;

// Open a stream and write data.
//ie.document.open;
//ie.document.write( html );
//ie.document.close; 

将上面代码保存为js,然后在Windows里添加一个"任务计划"来执行它就OK了

Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3