android重新加载输入字段访问

时间:2015-03-19 13:24:49

标签: javascript android forms google-chrome reload

我有 form ,适用于桌面设备(IE,Chrome,Firefox)和iOS(Safari和Chrome)。但是,在我的Nexus 7 Android平板电脑上,当选择输入字段时,它会RELOADS(因此会丢失表格) - 使其无效。

如何在启动键盘时停止Android Chrome刷新页面?

故障页面链接在上面。

编写表单的代码是:

<form id="responseForm" name="responseForm">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="25%">&nbsp;</td>
      <td width="25%">
        <label for="formName">Name(s)</label>
      </td>
      <td width="25%">
        <input type="text" class="inputClass" name="formName" id="formName" tabindex="1" size="34" />
      </td>
      <td width="25%">&nbsp;</td>
    </tr>
    <tr>
      <td width="25%">&nbsp;</td>
      <td width="25%">
        <label>Email</label>
      </td>
      <td width="25%">
        <input type="text" class="inputClass" name="formEmail" id="formEmail" tabindex="2" size="34" />
      </td>
      <td width="25%">&nbsp;</td>
    </tr>
    <tr>
      <td width="25%">&nbsp;</td>
      <td width="25%">
        <label>Response</label>
      </td>
      <td width="25%">
        <select class="inputClass" name="formOption" id="formOption">
          <option value="INVALID" selected="selected">Please select ...</option>
          <option value="ACCEPT">Yes, I (we) are happy to join</option>
          <option value="DECLINE">So sorry, I (we) can’t make it</option>
        </select>
      </td>
      <td width="25%">&nbsp;</td>
    </tr>
    <tr>
      <td width="25%">&nbsp;</td>
      <td width="25%">&nbsp;</td>
      <td width="25%">
        <button class="inputClass" type="button" onclick="sendForm()">Submit</button>
      </td>
      <td width="25%">&nbsp;</td>
    </tr>
  </table>
</form>

0 个答案:

没有答案