我在点击按钮时尝试转到另一个页面,但我无法执行此操作。点击按钮不做任何事情。谁能帮我?
<form id="subscribe-form" method="post" class="form">
<div style="left:400px;width:300px;" class="col-sm-3 col-xs-12">
<input onclick="somepage.html" type="submit" value="See Previous Officers" name="submit">
</div>
</form>
答案 0 :(得分:0)
试试这个
<form id="subscribe-form" method="post" class="form">
<div style="left:400px;width:300px;" class="col-sm-3 col-xs-12">
<input onclick="javascript:window.location.href='http://your_site_url/somepage.html; return false;" type="submit" value="See Previous Officers" name="submit">
</div>
</form>