字体真棒图标和Firefox

时间:2014-03-22 08:46:42

标签: html button

我在点击按钮时尝试转到另一个页面,但我无法执行此操作。点击按钮不做任何事情。谁能帮我?

<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>

1 个答案:

答案 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>