斷行符號提交表單的測試

來源:互聯網
上載者:User

這是好久以前做的測試,結果有些記不清了,拿出來在溫習下。也順便讓大家找找有問題沒。

只有一個input,斷行符號自動認可表單<br /><form method="post" action="a.html" target="_blank"><br /><input type="text" name="qqq"/><br /></form><br />只有一個input和一個submit,斷行符號自動認可表單<br /><form method="post" action="a.html" target="_blank"><br /><input type="text" name="qqq"/><br /><input type="submit"/><br /></form><br />只有一個input和一個button,斷行符號自動認可表單<br /><form method="post" action="a.html" target="_blank"><br /><input type="text" name="qqq"/><br /><button>提交</button><br /></form><br />有兩個input和一個submit,斷行符號自動認可表單<br /><form method="post" action="a.html" target="_blank"><br /><input type="text" name="qqq"/><br/><br /><input type="text" name="www"/><br /><input type="text" name="textfield2" style="display:none" mce_style="display:none"/><br /><input type="submit"/><br /></form><br />有兩個input和一個button,firefox斷行符號自動認可表單,ie不自動認可<br/><br /><form method="post" action="a.html" target="_blank"><br /><input type="text" name="qqq"/><br/><br /><input type="text" name="www"/><br /><button onclick="subForm()">提交</button><br /><!--<input type="button" value="提交" onclick="subForm()"/>--><br /></form><br />有兩個input和一個input button,firefox斷行符號不自動認可表單,ie不自動認可<br/><br />表單中加一個隱藏的submit後,firefox斷行符號自動認可表單,ie不自動認可<br/><br /><form method="post" action="a.html" target="_blank"><br /><input type="text" name="qqq"/><br/><br /><input type="text" name="www"/><br /><!--<input type="submit" name="Submit2" value="提交" style="display:none;" mce_style="display:none;"/>--><br /><input type="button" value="提交" onclick="subForm()"/><br /></form><br />有兩個input和一個input button,firefox ie 都不自動認可<br /><form name='frm' method="post" action="a.html" target="_blank"><br /><input type="text" name="qqq"/><br/><br /><input type="text" name="www"/><br /><input type="button" value="提交" onclick="frm.submit();"/><br /></form></p><p><!--<input type="submit"/><br /><button>提交</button><br /><input type="text" name="textfield2" style="display:none" mce_style="display:none"/><br /><input type="button" value="提交" onclick="frm.submit();"/>--></p><p><mce:script type="text/javascript"><!--<br />function subForm(){<br />alert("");<br />}<br />// --></mce:script><br />//onsubmit="return false;"<br /><form method="get" action="a.html" target="_blank" onsubmit="return false;"><br /><input type="text" name="www"/><br /><button>提交</button><br /><input id="searchBox_forceForm_submit" type="submit"><br /></form> 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.