styledPage.html 537 B

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Styled Page</title>
  5. <script>
  6. function log(message) {
  7. document.getElementById('log').innerHTML = "<p>" + message + "</p>"
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <div style="height: 200px"></div>
  13. <form action="#" method="get" onsubmit="return false;">
  14. <input name="searchBox">
  15. <input type="submit" name="btn" style="padding-top: 4px; padding-bottom: 4px" value="Search" onclick="log('click');">
  16. </form>
  17. <div id="log"></div>
  18. <div style="height: 4000px">Content</div>
  19. </body>
  20. </html>