We are providing online training of realtime Live project on Asp.Net MVC with Angular and Web API. For more information click here. If you have any query then drop the messase in CONTACT FORM

Monday, June 22, 2015

Create html page take one textbox and one submit button. Write javascript function to display the textbox data.


<html >
<head >
    <title></title>
    <script  type="text/javascript">
        function showData()
        {
            showResult.innerHTML = "Name:  " + form1.Text1.value;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p>Enter your Name:</p>
        <input id="Text1" type="text" />
        <input id="Button1" type="button" value="Submit" onclick="showData()" />
        <p id="showResult"></p>  

    </div>
    </form>
</body>

</html>

OUTPUT:

No comments: