Cara membuat tombol html dan kasih script
<html>
<head>
</head>
<body>
<button onclick=greeting()>tombol</button>
<script>
var greeting = function () {
alert ('hello world!')
}
</script>
</body>
apa itu alert? cuma nampilan pop-up browser dengan tulisan hello world!
apa itu var greeting = function() ?
<html>
<head>
</head>
<body>
<button onclick=greeting()>tombol</button>
<script>
var greeting = function () {
alert ('hello world!')
}
</script>
</body>
apa itu alert? cuma nampilan pop-up browser dengan tulisan hello world!
apa itu var greeting = function() ?
No comments:
Post a Comment