Hi, I am new here and I was wondering if someone could help me out doing this: I want a textbox on a school webpage, a student types in his-her studentnumber, like ´7928´, then presses ´ok´ en the page 7928.htm will load. Is there a simple way to do this?
<html> <head> <script type="text/javascript"> function go() { window.location.href = document.getElementById("tStudentNumber").value + ".htm"; } </script> </head> <body> <textarea id="tStudentNumber"></textarea> <input type="button" value="ok" onClick="go();" > </body> </html> Code (markup):