Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Basic Program of Java Script

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 122
    Comment on it

    JavaScript is the programming language of HTML and the Web. JavaScript can be placed in the and the sections of an HTML page. In HTML, JavaScript code must be inserted between <script> and </script> tags.

    <!DOCTYPE html>
    <html>
    <head>
    <script>
    function myFunction() {
        document.getElementById("demo").innerHTML = "Paragraph changed.";
    }
    </script>
    </head>
    
    <body>
    
    <h1>JavaScript task</h1>
    
    <p id="demo">A Paragraph is included</p>
    
    <button type="button" onclick="myFunction()">Click</button>
    
    </body>
    
    </html> 
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: