跪求!怎么给表单加连接?

来源:百度知道 编辑:UC知道 时间:2024/06/24 13:08:24
各位路过的大哥
我想问一下
就是怎么给表单加连接~!

就好象 我建立了一个表单按钮 名字是注册~!
我想给这个表单加个连接 让他连接到注册的那个页面!
怎么加?/???

楼上说的是,但是这样不能用在表单里,这样写就哪里都可以用:
<input type="button" value="注册" onclick="location='Reg.asp'">
或:
<input type="button" value="注册" onclick="window.open('Reg.asp','_self')">
window.open()函数第二个参数和超链接的target属性是一样的

<form name="form" method="post" action="Reg.asp">
<input type="submit" value="注册">
</form>

这里form中的action后面的地址就你所说的链接