Menampilkan Tombolhtml




Berikut source code html menampilkan Tombolhtml:


<!DOCTYPE html>
<html>
<body>

<p id="demo">Klik tombol dibawah ini </p>

<script>
function myFunction(){
var x = document.getElementById("demo");
x.style.fontSize = "25px";
x.style.color = "red";
}
</script>

<button onclick="myFunction()">klik disini </button>

</body>
</html>

Komentar