function getDoc() { var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); WinHttpReq.Open("GET", "http://Server/folder", false); WinHttpReq.Send(); var tt=WinHttpReq.responseText; alert(tt); }