Hey
I have made a page with a one-line text box and a push button and it works good but i would like to to work for enter on the keyboard to.
Thanks in advance
Al
here is my code if it help anyone
____________________________________________________________
<html>
<head>
<title></title>
<style type="text/css">
<!--
A:link {text-decoration: none;}
A:visited {text-decoration: none;}
A:hover {text-decoration: underline overline; overline; color:navy;}
-->
</style>
</head>
<body>
<form name="bulletin">
<div align="center"><center><p> </p>
</center></div><div align="center"><center><p> </p>
</center></div><div align="center"><center><p> </p>
</center></div><div align="center"><center><p> </p>
</center></div><div align="center"><center><table border="0" cellpadding="4"
cellspacing="0" width="38%">
<tr>
<td width="52%"><strong><font face="Arial"><font color="#FFFFFF"> </font><font
color="#000000"> 1. Enter Bulletin Number </font><p><font color="#000000">
2. Click the go button</font></p>
</font></strong><div align="center"><center><p> <input type="text"
name="number" size="10"> <input type="button" value=" Go "
onClick="grasppasswd()"></td>
</tr>
</table>
</center></div><div align="center"><center><table border="0" cellpadding="0"
cellspacing="0" width="1%" height="1">
<tr>
<td width="100%" align="center" height="1"><topmargin="10000" leftmargin="10000" vlink="#FFFFF" alink="#FFFFF"></td>
</tr>
</table>
</center></div><div align="center"><center><p><script language="JavaScript"><!--
//-
function grasppasswd() {
var keyword=document.forms.bulletin.number.value
var pagename = keyword + ".htm"
this.location.href = pagename;
}
// -
// --></script></p>
</center></div>
</form>
</body>
</html>
I have made a page with a one-line text box and a push button and it works good but i would like to to work for enter on the keyboard to.
Thanks in advance
Al
here is my code if it help anyone
____________________________________________________________
<html>
<head>
<title></title>
<style type="text/css">
<!--
A:link {text-decoration: none;}
A:visited {text-decoration: none;}
A:hover {text-decoration: underline overline; overline; color:navy;}
-->
</style>
</head>
<body>
<form name="bulletin">
<div align="center"><center><p> </p>
</center></div><div align="center"><center><p> </p>
</center></div><div align="center"><center><p> </p>
</center></div><div align="center"><center><p> </p>
</center></div><div align="center"><center><table border="0" cellpadding="4"
cellspacing="0" width="38%">
<tr>
<td width="52%"><strong><font face="Arial"><font color="#FFFFFF"> </font><font
color="#000000"> 1. Enter Bulletin Number </font><p><font color="#000000">
2. Click the go button</font></p>
</font></strong><div align="center"><center><p> <input type="text"
name="number" size="10"> <input type="button" value=" Go "
onClick="grasppasswd()"></td>
</tr>
</table>
</center></div><div align="center"><center><table border="0" cellpadding="0"
cellspacing="0" width="1%" height="1">
<tr>
<td width="100%" align="center" height="1"><topmargin="10000" leftmargin="10000" vlink="#FFFFF" alink="#FFFFF"></td>
</tr>
</table>
</center></div><div align="center"><center><p><script language="JavaScript"><!--
//-
function grasppasswd() {
var keyword=document.forms.bulletin.number.value
var pagename = keyword + ".htm"
this.location.href = pagename;
}
// -
// --></script></p>
</center></div>
</form>
</body>
</html>