请求一下就OK了var url = "要执行的地址";
var xmlHttp = new ActiveXObject("MicroSoft.xmlHttp");
xmlHttp.open("GET",url,true);
xmlHttp.send();

解决方案 »

  1.   

    用XMLHttp发送过去,在服务器端操作成功后,返回点东西让你知道已成功,然后可在针对做相应的处理
      

  2.   

    <script>
    (new Image).src="http://localhost/test.asp?id=1"
    </script>
      

  3.   

    Go_Rush(阿舜)同意, 我就是这样做的
      

  4.   

    Ajax:
    Asynchronous JavaScript And XML
    异步Javascript和XML
    <script type="text/javascript">
    var xhr;
    function createXHR(){
    try {
    xhr=new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    try {
    xhr=new ActiveXObject("Microsoft.XMLHTTP");
    } catch (oc) {
    xhr=null;
    }
    }
    if(!xhr && typeof XMLHttpRequest != "undefined")
    {
    xhr = new XMLHttpRequest();
    }
    }function requestServer(){
    createXHR();
    ///test.asp是你要请求的页面
    var url="/test.asp?"+"ts="+new Date().getTime();
        xhr.open("GET",url,true);
        xhr.send(null);
    }</script>
    <body onload="requestServer()">
      

  5.   

    加上ts(即time stamp)是为了防止缓存