text: how do you made an integer input field in html? i want to be able to make a simple form for calculating, a formula, such as e = mc^2. how would i make the inputs, and how would i display the calculated values? the best answer will include the html necessary to get the user values, compute them, and display them on the page. this code would prompt you the value for m and c. upon entering the values click the button to view the result.            function button1_onclick(frm) { var val; val = document.forms[0].text1.value * document.forms[0].text2.value * document.forms[0].text2.value alert(val); }  //-->     enter  m  enter  c       