Kamis, 12 April 2018

Tugas Web Pro Lanjut Click

<!DOCTYPE html>
<html>
<body>
<p id="demo"> Click the button to change the layout of this paragraph </p>
<script>
function myFunction() {
var x = document.getElementById("demo");
x.style.fontSize = "30px";
x.style.color = "pink";
}
</script>
<button onclick="myFunction()"> Click Disini! </button>
</body>

</html>

Tidak ada komentar:

Posting Komentar