GS wrote on 26 okt 2006 in comp.lang.javascript
:
we are using the following script for cursor to goto default position,
is this script is java script or not?.
It is not Java Script, because Java has no script.
It is ..... Javascript.
That is the part between the "" is.
Without the ; it could also be vbscript in IE,
since in fact it is mainly DOM.
can somebody tell me. I got this
script from Internet, our client told us not to use any Java script to
set the cursor to default position. Thanks in advance.
Ignore him and do what you think best!
Chances are he will not pay, however, for being ignored. ;-}
onload="document.login.userrname.focus();"
More cross browser safe use:
<body
onload="document.forms['login'].elements['userrname'].focus();">
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)