Write a Program to type your name and print it on display screen

 Name of Program - Type name and print it on display screen or web browser

Code Input

<!DOCTYPE html>

<HTML>

    <HEAD>

        <SCRIPT>

            var name = prompt("Enter Your name:");

            var msg = "Welcome "+name;

            //alert(msg);

            document.write(msg);

        </SCRIPT>

    </HEAD>

    <BODY>  

    </BODY>

</HTML>

Code View

A. Input View


B. Output View



No comments

Plz.... Don't enter any spam message