thanks guys;
I used document.all.may.ola.focus(); and it is working well.
>>> zepedro@f... 09/06/01 02:41PM >>>
nope...
try this
<body (...) onload="document.may.ola.focus();">
the other solution only works in IE and it's not when the page finishes
to
load...
seya!
-----Original Message-----
From: NOVABASE Ricardo Sarmento [mailto:novabaserjs@e...]
Sent: quinta-feira, 6 de Setembro de 2001 11:47
To: JavaScript Objects
Subject: [javascript_objects] RE: javascript object problem
Try this:
<html>
<body>
<table>
<tr>
<td>
<form name="may">
<input name="ola">
</form>
<script>
document.all.may.ola.focus();
</script>
</td>
</tr>
</table>
</body>
</html>
Ricardo Sarmento
-----Original Message-----
From: Puseletso Portia Sephula [mailto:SephulPP@t...]
Sent: Thursday, September 06, 2001 10:08 AM
To: JavaScript Objects
Subject: [javascript_objects] javascript object problem
I wanted to set cursor in the password field when the page has beeen
loaded.
the form is: accForm
the name: pwd
I used this object inside scritpt tag.
<script language=javascript>
document.accForm.pwd.focus()
</script>
I get this error: document.accForm.pwd is not an object.
please help..