当前位置: 代码迷 >> Java Web开发 >> 一个调用script的有关问题
  详细解决方案

一个调用script的有关问题

热度:7   发布时间:2016-04-17 15:10:31.0
一个调用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; "/>
  相关解决方案