show-notice
hide-notice

Monday, 22 July 2013

How to write statement in JavaScript


Introduction

How to write statement in JavaScript.


Example
<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>
 

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com