基本上是个蛋分帖了,,,试试 getExpression(this.parent);

解决方案 »

  1.   

    getExpression是语言本身在用的属性的名字换个函数名即可
      

  2.   

    <html> 
    <head> 
    <title>无标题文档 </title> 
    <script language="javascript"> 
    function calculate(form) 

    form.surlte.value=eval(form.entry.value); 

    function show(form) 

    //form.entry.blur(); 
    form.entry.value=prompt("please enter a javascript",""); 
    calculate(form); 

    </script> 
    </head> <body> 
    <form method="post"> 
    Enter a javascript mathmaeth: 
    <input type="text" name="entry" value="" onfocus="show(this.form);" /> 
    The surlte Express is: 
    <input type="text" name="surlte" value="" onfocus="this.blur();" /> 
    </form> 
    </body> 
    </html>