有人问通过http://www.cnblogs.com/netcai/archive/2011/05/31/2063890.html这个文章获取到邮件数量和url之后,怎么样才能直接访问
var _xmlhttp; var _url ; function LoginExchange( url , user , password ) { _url = url ; try{ _xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); _xmlhttp.onreadystatechange = LoginExchangeGetReady ; _xmlhttp.open("POST",url ,false, user ,password); _xmlhttp.send(""); }catch(e) { //document.location = _url ; } } function LoginExchangeGetReady() { //alert(_xmlhttp.readyState); if( _xmlhttp.readyState==4 ) { document.location = _url ; } }