Advertisement
1xptolevitico69

How to display text inside an input filed

May 27th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width">
  7. <style>
  8.  
  9. </style>
  10. </head>
  11. <body>
  12. <input type='text' value='some text' size='100'/>
  13. <p>
  14. <input onclick='this.value="some text again";' type='text' value='click inside to display the new text' size='100'/>
  15.  
  16.  
  17. <script>
  18.  
  19. </script>
  20. </body>
  21. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement