读书人

一个调用script的有关问题

发布时间: 2011-12-18 22:54:38 作者: rapoo

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

读书人网 >Java Web开发

热点推荐