日期:2014-05-18  浏览次数:20651 次

一个调用script的问题。
在jspPage上:
    <input   type= "button "   onclick= "theNext() "/>
<script>
function   theNext(){
document.formName.hiddenName.value=2;
document.formName.submit();}
</script>

我想把theNext()的内容用一个串表示。就是这样:
  <input   type= "button "   onclick= "theNext()的内容都写在这 "/>
我要怎么写这句话。谢谢。

------解决方案--------------------
非常规问题,见识下
------解决方案--------------------
<input type= "button " onclick= "document.formName.hiddenName.value=2;document.formName.submit(); "/>

------解决方案--------------------
<input type= "button " onclick= "document.formName.hiddenName.value=2; "/>