20 Create a JavaScript program to create webpage with 'Bio-data' and after clicking on 'View Bio-data', it will display a New Window with 'Bio-Data'.

Program:

<html>

    <body>

        <center>

        View Bio Data : <br><br><input type="button" id="b1" value="View Bio Data" onclick="next()">

        </center>

    </body>

    <script>

        function next()

        {

            window.open("Bio.html","","500,500");



        }

    </script>

</html>



Bio.html:

<html>

    <body>

        <form name="f">

        Name : Atharva Satyendra Agrawal<br><br>

        Age : 18<br><br>

        Mobile No : 9123456789<br><br>

        Qulification : 10th <br><br>

        Hobby : Programming , BasketBall<br><br>

        </form>

    </body>

</html>


Output:

Biodata new Window

Previous
Next Post »