[html4strict] Code
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Interactive Page with User Input</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- }
- .input-field {
- padding: 10px;
- font-size: 16px;
- margin-bottom: 10px;
- }
- .submit-button {
- padding: 10px 20px;
- font-size: 16px;
- background-color: #28a745;
- color: white;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- }
- .display-box {
- margin-top: 20px;
- padding: 20px;
- background-color: #f8f9fa;
- border: 1px solid #ddd;
- border-radius: 5px;
- }
- </style>
- </head>
- <body>
- <input type="text" id="userInput" class="input-field" placeholder="Type something...">
- <button class="submit-button" id="displayButton">Display</button>
- <div id="displayText" class="display-box"></div>
- <script>
- document.getElementById('displayButton').addEventListener('click', function() {
- var inputText = document.getElementById('userInput').value;
- document.getElementById('displayText').textContent = inputText;
- });
- </script>
- </body>
- </html>
Editor
You can edit this paste and save as new: