<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title><!-- Insert your title here --></title> <script type="text/javascript"> function testVariable(){ var strText = document.getElementById("textone"); document.write(strText); } </script> </head> <body> <form action="" method="get" > <input type="text" id="textone" name="textone"></input> <input type="button" value="Submit" onclick="testVariable();false"></input> </form> </body> </html>
document.write(strText.value);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)