首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

一个调用script的有关问题

2011-12-18 
一个调用script的问题。在jspPage上:inputtype button onclick theNext() /scriptfunctiontheNex

一个调用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; "/>

热点排行