Hey guy can anyone help
what i am trying to do is get the enter key on the key board to work aswell as the button button the enter key wont work
if anyone can help it will be very much appreciated
Regards Al
<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><script language="JavaScript"><!--
function enterpress(e){
if(document.layers){
thekey=e.which
}
else{
thekey=event.keyCode()
}
if(thekey=="13"
{grasppasswd()}
}
// --></script></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="#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 onkeypress=" enterpress()"> <input type="button"
value=" Go " onClick="grasppasswd()" </td> </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>
what i am trying to do is get the enter key on the key board to work aswell as the button button the enter key wont work
if anyone can help it will be very much appreciated
Regards Al
<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><script language="JavaScript"><!--
function enterpress(e){
if(document.layers){
thekey=e.which
}
else{
thekey=event.keyCode()
}
if(thekey=="13"
{grasppasswd()}
}
// --></script></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="#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 onkeypress=" enterpress()"> <input type="button"
value=" Go " onClick="grasppasswd()" </td> </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>