Edit Code in left box and click Show Results button to see the result. | Home
<!DOCTYPE HTML> <html> <script type="text/javascript"> function showResult() { x = document.forms["myform"]["newinput"].value; document.forms["myform"]["result"].value=x; } </script> <body> <form action="http://www.tutorialspoint.com/cgi-bin/html5.cgi" method="get" name="myform"> Enter a value : <input type="text" name="newinput" /> <input type="button" value="Result" onclick="showResult();" /> <output name="result"/> </form> </body> <!-- Mirrored from www.tutorialspoint.com/cgi-bin/practice.cgi?file=html5-11.htm by HTTrack Website Copier/3.x [XR&CO'2010], Thu, 01 Sep 2011 09:03:31 GMT --> <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack --> </html> |