Sunday, 14 October 2012

Contoh Java Script Statement


<!DOCTYPE html>
<html>
<body>

<h1>My Web Page</h1>


<p id="demo">A Paragraph.</p>

<div id="myDIV">A DIV.</div>

<script>
document.getElementById("demo").innerHTML="Hello Dolly";
document.getElementById("myDIV").innerHTML="How are you?";
</script>

</body>
</html>

No comments:

Post a Comment