html button

html button

when i click the submit button the entered data will be displayed below the submit button please help me

View Answers

July 16, 2013 at 3:01 PM

Please go through the link, may this will be helpful for you.

How to display user entered information using HTML and JavaScript.

Example:-

        <html>
        <head>
        <script>
        function display()
        {
        document.getElementById("displayarea").innerHTML = document.getElementById("fname").value;    
        document.getElementById("fname").value = "";
        document.getElementById("displayarea1").innerHTML = document.getElementById("lname").value;    
        document.getElementById("lname").value = "";

        }
        </script>
        </head>

        <body>
        <table bgcolor="#FF00FF" border="1" align="center">
        <tr>
        <td>FirstNames</td>
        <td><input type="text" name="fname" id="fname"></td>
        </tr>
        <tr>
        <td>LastName</td>
        <td><input type="text" name=lname" id="lname"></td>
        </tr>

        <tr>
        <td> </td>
        <td align="center"><input type="button" value="Submit" name="submit" id="submit" onClick="display()"/></td>
        </tr>
        </table>
        <table width="400px" align="center" border=0> 

            <tr style="background-color:#8FBC8F;">
                <td align="center"><b>Fast Name</b></td>
                <td align="center"><b>Last Name</b></td>
                </tr> 
                <tr>
                <td align="center"><div id="displayarea"></div></td>
                <td align="center"><div id="displayarea1"></div></td>
                </tr>
            </table>
        </body>
        </html>









Related Tutorials/Questions & Answers:
html button
html button  when i click the submit button the entered data will be displayed below the submit button please help me
facebook login button html
facebook login button html  facebook login button html i have a facebook login button code ..but not sure how to use it. Can any one please explain? Here is the facebook login button code in html <fb:login-button
Advertisements
HTML Button onclick get ID of Button
HTML Button onclick get ID of Button  How i can get the ID of HTML Button on click?? I wanted to do it using JavaScript function. Thanks
create a button in html
create a button in html  How do I create a button which acts like a link
Button Size HTML
HTML Button Size can be changed according to programmer use. HTML button... of a HTML button. First we create a HTML page. Then we display a HTML Button... with different size and colour. ADS_TO_REPLACE_2 HTML Button is very useful
Struts + HTML:Button not workin - Struts
Struts + HTML:Button not workin  Hi, I am new to struts. So pls... needs to be corrected. OR Should i use 2 HTML TAG BUTTON's here instead of 2... ----------- System.out.println(searchForm.get_button_Clicked()); The above statement
HTML Button Size
HTML Button Size       Button in HTML is used to submit HTML page. Understand with Example ADS_TO_REPLACE_1 The Tutorial illustrate an example from HTML Button size. In this Tutorial
html menu button drop down
html menu button drop down  How to create a menu button in HTML?   <select id="category"> <option value="1">One</option> <option value="2">Two</option> </select> <select id
Radio Button in HTML
Radio Button in HTML is a type of input form that allows a user to select one.... Use of a Radio Button in HTML:ADS_TO_REPLACE_2 The use of a radio button... for multiple selections Code for creating Radio Button in HTML: <!DOCTYPE
How to change HTML button onclick to autoclick - javascript function
How to change HTML button onclick to autoclick - javascript function  Can any one give me a block of code to change the HTML button onclick to autoclick. The method must be in Java Javascript
How to change HTML button onclick to autoclick - javascript function
How to change HTML button onclick to autoclick - javascript function  Can any one give me a block of code to change the HTML button onclick to autoclick. The method must be in Java Javascript
Using a image for Browse button instead of normal html Browse button for Uploading files from a JSP - JSP-Servlet
Using a image for Browse button instead of normal html Browse button... a Upload button, when I upload the file selected, it gives me errors. Is it not possible to use a image instead of normal html Browse button for uploading files
PHP HTML Form Submit Button
Topic : HTML FORM SUBMIT BUTTON Part - 4 The another part which is important.... The Submit button in Html is used to submit form data to the page mentioned... the information inputted by the user we just need a Html Submit button. <input
find out in servlet which button was clicked on an html page
find out in servlet which button was clicked on an html page  i have... in a servlet on pressing of those 2 buttons.. how do i find out which button was clicked so...="theForm"> <INPUT TYPE="button" VALUE="Roseindia" onClick="submitFunction
html
html  how we can give the form actions in html after register button in the login page
HTML Get Radio Button
HTML Get Radio Button       HTML Get  method in HTML is used to send the data as part... in URL. Understand with ExampleADS_TO_REPLACE_1 The Tutorial illustrates an HTML Get
HTML Post Radio Button
HTML Post Radio Button       HTML Post attribute used in method, when a user is not able... Button.HTML page. The HTML page create a radio button, which allows the user
Button text is not displaying properly in jre 1.6.0_22 when html tags are used in the textstring
Button text is not displaying properly in jre 1.6.0_22 when html tags are used in the textstring  using html string to jbutton text is not working in Java 1.6.0_22 when browser is using the existing java console this.setText
HTML
HTML  in html how can we can upload the file <tr> <...; </td> </tr> after this i want the upload button with form action when i click the upload button it wil goto some where to upload
Button
Button  How to use image for button in JSF
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is SPAN in HTML
html
html   HTML document with Javascript to count the number of vowels... HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD>... NAME="submit" TYPE=Button VALUE="Show Me" onClick="MsgBox(form.text1.value)">
HTML
HTML  What is HTML? What is a Hypertext link
HTML
HTML  What is BODY in HTML document
HTML
HTML  What is HTML? What is a Hypertext link
Html
Html  What is HTML? What is a Hypertext link
html
html  diffrence between html and xml
html
html  How to add the calendar in html code
html
add a header in the html page  what we can do to add a header in the html page
HTML
HTML  How do we specify page breaks in HTML
HTML
HTML  What is a tag? How can we use MARQUEE in HTML
html
html  how to convert html page into jsp page
html
html  i want a registration page in html with good background
HTML
HTML  how can we give the unlimited size in the html
html
html  what we can do to add a header in the html page
html
html  what we can do to add a header in the html page
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can we retriving dat from database, capturing data, moving to next page.. etc
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can be retriving dat from database, capturing data, moving to next page.. etc
HTML
HTML  Hi, What is the full form of HTML? Thanks (adsbygoogle = window.adsbygoogle || []).push({});   Hi, The HTML stands for HyperText Markup Language. HTML is used to create webpage for world wide web
html
html  sir i am new to eclipse and i am created a html program and also tomcat is running successfully in side the eclipse.but now how i deploy that html program in the eclipse
HTML
HTML  How do we use an image instead of the standard submit button
html
html  Can we Access database through html page and how,if not then why
HTML
HTML  How do we create a link? What are the three types of form tags in HTML
html
Adding Header in HTML  what we can do to add a header in the html page
html
html  For what is used HTML?   Using HTML we can create a Web Page which can be viewed through a Web Browser over Internet. HTML describes... or the End Tag is defined as </> . The whole HTML document is enclosed
Html
Html  in the web page if judge select the age and category then automatically under that conditions the details will be display in the form of grid give me that code in html and java

Ads