Following example page works in both Explorer and Netscape.
It contains elements for enter username [TAB] password [Enter]
Hot key is [Enter]. But you can try anything else.
<html>
<head>
<title>Dobpo</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function EnterKey(evt) {
if (evt.which == 13) {
document.pgaDobroStart.elements[2].click();
}
}
// -->
</SCRIPT>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#008080" vlink="#008080" alink="#FF0000"
background="/NetDynamics/DobroImg/about_bgrnd.gif">
[[SPIDERPAGE NAME=pgaDobroStart]]
<DIV ALIGN=center>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" >
<tr>
<td align=right><b>User: </b></td>
<td>**tbUser**</td>
</tr>
<tr>
<td align=right><b>Password: </b></td>
<td>**tbPwd**</td>
</tr>
<tr>
<td> </td>
<td>**btOK**</td>
</tr>
</table>
</DIV>
**SPIDERSESSION**
[[/SPIDERPAGE]]
<SCRIPT LANGUAGE="JavaScript">
<!--
if (navigator.appName.indexOf("Explorer")<0) {
window.captureEvents(Event.KEYPRESS);
}
window.onkeypress= EnterKey;
// -->
</SCRIPT>
</body>
</html>
"Jarett Blonde" <[EMAIL PROTECTED]> wrote:
>
>I have a text box and an Open button. Is there a way that I can force the open
>button code to activate when you press enter inside the text box????
>thanks
>
>Jarett
>[EMAIL PROTECTED]
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]