forms.html (1138B)
1 <html> 2 <head> 3 <meta charset="utf-8" /> 4 <title>Forms</title> 5 <meta name="viewport" content="minimum-scale=1,width=device-width" /> 6 </head> 7 <body> 8 <form id="form1"> 9 <input type="text" id="user1" value="foo" /> 10 <input type="password" id="pass1" value="foo" /> 11 <input type="email" id="email1" value="@" /> 12 <input type="number" id="number1" value="0" /> 13 <input type="tel" id="tel1" value="0" /> 14 <input type="submit" value="submit" /> 15 </form> 16 <input type="Text" id="user2" value="foo" /> 17 <input type="PassWord" id="pass2" maxlength="8" value="foo" /> 18 <input type="button" id="button1" value="foo" /> 19 <input type="checkbox" id="checkbox1" /> 20 <input type="search" id="search1" /> 21 <input type="url" id="url1" /> 22 <input type="hidden" id="hidden1" value="foo" /> 23 24 <iframe id="iframe"></iframe> 25 </body> 26 <script> 27 // ensure page isn't loaded before the iframe loaded it's target location 28 if (window.parent === window) { 29 document.getElementById("iframe").contentWindow.location.href = 30 window.location.href; 31 } 32 </script> 33 </html>