CODE
<html>
    <head>
        <body>
            <h2>Jvascript</h2>
            <p id= "demo"></p>
            <button value = "submit" type = "submit" onclick="display()">Click Here</button>
            <script>
                prompt("Enter your name");
                confirm("Are you Sure....?" )
                alert(" Are You Sure You Want To Dlete.. ?")
                //function display(a,b)
                { //return a*b;
                    //document.getElementById("demo").innerHTML="Welcome!";
                }
               // var a=5;
               // var b = 5;
               // var result = a*b;
               // document.getElementById("demo").innerHTML=result;
            </script>
        </body>
</html> 
<html>
    <!doctype html >
    <html lang="en">
    <head>
        <title>
            Hi World!</title>
            <style type="text/css">
            #divstyle{
                display: one;
                width: 200px;
                padding: 20px;
            }
            </style>
    </head>
<body>
    <input type="number" id ="firstnumber"/>
    <input type="number" id ="secondnumber"/>
    <input type="button" value ="+" on Click = "Addition()" />
    <div ID ="divstyle"></div>
    <script>
        function Addition()
        {
            var firstnumber=Number(document.getElementById('firstnumber').value);
            var secondnumber=Number(document.getElementById('secondnumber').value);
            var total = Firstnumber+Secondnumber;
            (document.getElementById('divstyle').Style.display = "block")
            (document.getElementById('divstyle').innerHTML = "sum of"+ firstnumber+ "and"+ secondnumber +
            "is" + Total)
        }
        </script>
 </body>
</html> 
<html> 
    <!doctype html >
    <html lang="en">
    <head>
     <h2> hjhhhh</h2>
     <p id= "demo">
     </p>
     <a href="file:///C:/Users/pk/Desktop/cards/Chrysanthemum.jpg" download >
         Image Download 
     </a>
 </body>
</html> 
0 Comments