<script type ='text/javascript' language ='javascript' >
function DelTempDoc()
  {  document.write("Writing file <br>");//&sup3;&ouml;&acute;í&pound;&ordm;'Response'&Icirc;&acute;&para;¨&Ograve;&aring;   } 
  DelTempDoc();
</script>

解决方案 »

  1.   

    javascript函数中写:Response.Write("Why  can't i do it <br>");  出错:'Response'未定义;怎么才能不出错?
    -------
    <script type ='text/javascript' language ='javascript' >
    function DelTempDoc()
      { 
                  ....
    //Response.Write("Writing file <br>");//出错:'Response'未定义
             //因为Response对象是ASP对象它是在服务器端存在的,而ASP需放到<%%>之间。
        //所以可以转一下。
           <%Response.Write("Writing file <br>") %>
       ....
      } 
    </script>
      

  2.   

    kingdomzhf(旭日东升) 同志的方法 把整个页面都变成了 document.write(...)输出的内容,
    其它控件不见了,
    pzk(小黑蚁) 同志的方法 运行好像出错~---------
    我要求它在页面上新添加一行(调试用 ) ,有更好的方法没?
      

  3.   

    服务器端:
    <script type ='text/javascript' language ='javascript' runat='serve'>
    客户端:
    document.write("xxxxx");
      

  4.   


    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>test</title>
    <script language="JavaScript">
    function output()
    {
    document.write("我们都在");
    }
    </script>
    </head><body>
    <script>output();</script>
    <input type="button" value="gogo"> 
    </body>
    </html>