<script language="JavaScript" runat="server">
....
</script>

解决方案 »

  1.   

    <html>
    <body>
    <server>
    write("你正在运行的是服务器端的代码!")
    </server>
    <body>
    </html>
      

  2.   

    我主要想问javascript为什么要有的放服务端有的放客户端????
      

  3.   

    一般情况下,javascript都是在客户端运行,你要想在服务器端运行的话,最好用asp.jsp等,因为javascript的功能有限。
      

  4.   

    ASP中本身就可以用Jscript(与javascript几乎一样)来写。
      

  5.   

    (1)
    <script language="JavaScript" runat="server">
    ....
    </script> 

    (2)
    <html>
    <body>
    <server>
    write("你正在运行的是服务器端的代码!")
    </server>
    <body>
    </html> (1)与(2)哪一种对?还是都对?有区别吗??
      

  6.   

    更多信息,参见:
    http://developer.netscape.com/viewsource/husted_js/husted_js.html
      

  7.   

    参见:
    http://developer.netscape.com/docs/technote/ssjs/ssjs2nas/ssjs2nas.html
      

  8.   

    参见:
    http://www.zdnet.com/devhead/stories/articles/0,4413,2251991,00.html