【发布时间】:2016-03-11 08:00:05
【问题描述】:
我创建了一个包含姓名、电子邮件、电话字段的表单。
<div class="col-md-4 col-md-offset-4 my">
<form role="form">
<div class="form-group">
<label for="contact_name">Name</label>
<input class="form-control" id="contact_name" name="contact_name" required="true" type="text"/>
</div>
<div class="form-group">
<label for="email_from">Email address</label>
<input class="form-control" id="email_from" name="email_from" type="email"/>
</div>
<div class="form-group">
<label for="phone">Phone No</label>
<input class="form-control" id="pnone" name="phone" type="text"/>
</div>
<button class="btn btn-primary center-block" style="width: 35%;" type="submit">Submit</button>
</form>
</div
我想要操作和 onsubmit 事件。 操作是在哪里提交我的表单并在成功提交后提交重定向。 成功提交后,我想重定向到谷歌。
【问题讨论】:
-
“在谷歌上重定向”?详细解释。
-
用代码更新问题,你这样做是为了什么..
-
您是在点击提交后重定向,还是在保存数据后重定向?请详细说明
标签: javascript html forms