My Function is not executing onClick, and alerting input value

dawnjones3891

New Member
\[code\]<HTML><HEAD><TITLE>Test Input</TITLE><script type="text/javascript">function go (form) { var Tid = document.upperform.inputbox.value; alert ("You typed: " + Tid); //window.location.href = 'http://serverpage=' + Tid + '&tab=0';</script></HEAD><BODY><FORM NAME="upperform" ACTION="" METHOD="GET">Go to this Task ID: <INPUT TYPE="text" NAME="inputbox" VALUE="" OnBlur="validate(this.form)"> <INPUT TYPE="button" NAME="button" Value="http://stackoverflow.com/questions/13731399/Go" onClick="go(this.form)"></FORM></BODY></HTML>\[/code\]I cannot get this to work. It looks like it should work, but I must have missed something. Any suggestions?
 
Back
Top