test.html (1088B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Form Test</title> 5 </head> 6 <body> 7 <h1>Moonbrowser Form Test</h1> 8 9 <h2>Navigation</h2> 10 <p><a href="page2.html">Go to Page 2</a></p> 11 12 <h2>Buttons</h2> 13 <button onclick="query('#username').value = 'abc123'">Set Username</button> 14 <button onclick="alert('hello')">Show Alert</button> 15 16 <h2>Text Inputs</h2> 17 <form> 18 <label>Username:</label> 19 <input type="text" id="username" name="username"> 20 <br> 21 <label>Password:</label> 22 <input type="password" name="password"> 23 <br> 24 <label>Email:</label> 25 <input name="email"> 26 <br> 27 <input type="submit" value="Submit Form"> 28 </form> 29 30 <h2>Checkboxes</h2> 31 <input type="checkbox" name="option1"> Option 1 32 <br> 33 <input type="checkbox" name="option2" checked> Option 2 (checked) 34 35 <h2>Textarea</h2> 36 <textarea name="comments" rows="4" cols="30">Enter comments here...</textarea> 37 38 <p>Test paragraph text.</p> 39 40 <script> 41 console.log("Page 1 loaded!") 42 </script> 43 </body> 44 </html>