你来看看我写的这篇文章对你有帮助么
http://u21.qzone.qq.com/cgi-bin/cgi_client_entry.cgi?uin=342064802

解决方案 »

  1.   

    <div id=aa>bb</div>
    <script>
    document.all.aa.innerHTML ='aa';
    </script>
      

  2.   

    使用Ajax
    -------含有层的页面-------------
    <div id="kk">
     <table >
         <tr><td></td></tr>
     </table>
    </div><script language=javascript>
             var aaa = '' ;
    function ref()
    {
    var theTemp = "?temp=" + Math.random( ) ;
    document.all.theJS.src = "test.asp" + theTemp ;//
    }function updateVar( the )
    {
        if( the.readyState == "loaded" )
        {
             kk.innerHTML = aaa 
        }
    }
    </script>
    <div onclick="ref()">刷新KK</div><script id=theJS DEFER = "DEFER" onreadystatechange =" updateVar( this ) " language=javascript>
    </script>
    ---------------test.asp------------<%
    response.write "aaa = 'xxxx' "
    %>