时间: 2021-07-31 作者:daque
// the url to download var url = "http://www.aboutnt.com/default.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