<!DOCTYPE html> <html> <meta charset="utf-8"/> <title>Html Test</title> <style> button { background: red; color:white; border: none; padding:10px; border-radius:10px; } </style> <body> <button id = "btn">Button1</button> <button>Button2</button> <script> console.log("Hello"); setTimeout(function() { document.getElementById("btn").innerHTML = "Button3"; } ,2000); </script> </body> </html>