<script type="text/javascript" language="javascript"> function $(id) { return document.getElementById(id).value; } function HttpWorker() { }; HttpWorker.httpCreate = function() { var http; if (window.ActiveXObject) http = new ActiveXObject("Microsoft.XMLHTTP"); else http = new XMLHttpRequest(); return http; } HttpWorker.httpExecuet = function(object) { object.request.open(object.method, object.url, object.async); object.request.setRequestHeader("Cookie", "sessionid=15BA1020BF2299F73ECA68F3"); object.request.send(object.para); object.request.onreadystatechange = function() { if (object.request.readyState == 4) { if (object.request.status == 200) { alert(object.request.responseText); } } } } function htmlGet() { var http_request = HttpWorker.httpCreate(), para; para = { method: 'get', url: $('txt_url'), async: true, para: null, request: http_request }; HttpWorker.httpExecuet(para); } </script