Advertisement
dimkiriakos

javascript

Sep 6th, 2021
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.52 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>Test</title>
  8. </head>
  9. <body>
  10.     <p id="paragrafos"></p>
  11.     <button onclick="clickFunction()">Κάνε κλίκ</button>
  12.     <script>
  13.         function clickFunction(){
  14.             document.getElementById('paragrafos').innerHTML = "Γεια σου Αντώνη"
  15.         }
  16.     </script>
  17. </body>
  18. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement