上面说的是JSP函数
你问你应该是JAVASCROPT函数吧
好象没有办法

解决方案 »

  1.   

    <html>
    <head>
    <title>Checkbox Test</title>
    <script language="javascript">
    function hello() {
    document.form1.txt.value="hello";
    }
    </script>
    </head><body onLoad="hello()">
    <form name="form1">
    <input type="text" name="txt</form>
    </body>
    </html>
      

  2.   

    <html>
    <head>
    <title>Checkbox Test</title>
    <script language="javascript">
    function hello() {
    document.form1.txt.value="hello";
    }
    </script>
    </head><body onLoad="hello()">
    <form name="form1">
    <input type="text" name="txt">
    </form>
    </body>
    </html>
      

  3.   

    另外写个函数
    var result = cal_fee();
    document.all.ill_fee.value = result;
    即可
      

  4.   

    如果我这样写,
    <html>
    <body>
    </body>
    <script language=JavaScript>
                     我应该怎么在这个位子调用这个涵数,
    </script>
    </html>楼上的兄弟,你放在BODY里,一进来就调用,里面还有很多直没有获得,所以没有成功.
    我就在页面最后面再调用他.我不想在BODY里面调用,请问该怎么调用这个涵树
      

  5.   

    直接写在最后面就可以了,也可以写在body的onload事件里面。
      

  6.   

    我就是不知道怎么写,不想写在BODY里,
    我想写在页面的最下面,
    <input type=text name=ill_fee>该怎么获得这个涵数.
      

  7.   

    <head>
    <script language="javascript">
    //其他自己的函数
    function doInit() {
            var result = cal_fee();
            document.all.ill_fee.value = result;
    }
    </script>
    </head><body onLoad="doInit()">
      

  8.   

    在叶面的最下面也可以这样
    </html><script language="javascript">
            var result = cal_fee();
            document.all.ill_fee.value = result;
    </script>
      

  9.   

    那在<input type="text" name=ill_fee>这里面怎么调用这个涵数.??