网页下载脚本怎么做啊?

来源:百度知道 编辑:UC知道 时间:2024/06/02 19:24:41
哪位高手指教:网页的下载脚本怎么做啊?`我的下载按钮一点上去网页就关了``上传网页听说还要设置IIS``具体怎么设置``越详细越好``本人菜鸟````

var url = "http://www.XXX.com/XXXX.htm"
// Create instance of Inet Control
inet = new ActiveXObject("InetCtls.Inet");
// Set the timeout property
inet.RequestTimeOut = 20;
// Set the URL property of the control
inet.Url = url;
// Actually download the file
var s = inet.OpenURL();
// Show the raw HTML to the user
WScript.Echo( s );
// Bonus - Find the title of the page
// Regular expression to find the string stored between
// the title tags.
rtitle = /<title>(.*)<\/title>/i;
// Execute the regular expression on the raw HTML
var title = rtitle.exec( s );
// Display the result