document.myform.action='register.jsp?posttodb=true'什么意思?

来源:百度知道 编辑:UC知道 时间:2024/06/17 09:52:53
想知道是什么意思?

document是js内置对象
myform是表单的name值,
action是form的属性
register.jsp是要转的页面
posttodb是转到上面的页面是传递一个变量叫posttodb
true是变量的值true

这样在register.jsp页面中就可以得到request.getParameter("posttodb")得到true这个值,然后判断处理,继续下去。

意思是 将你的页面上名称为myform的action 提交至 register.jsp处理, 并且传递一个名字为posttodb 值为true的参数