kay wrote:
cant u just put somewhere inside the body tag
<script type="text/javascript">
forms[0].elements[0].focus();
</script>
? i think it will work...?
It does not. First, "somewhere" is not sufficient: the `script' element
at least must be placed after the form element, and even then there is no
guarantee that it is going to work. Second, it works only where an
HTMLDocument object is in the scope chain; so far, at least that does not
apply to the Gecko DOM, the Opera DOM and the KHTML DOM.
Please do not post suggestions if you do not have at least a minimum clue
of what you are talking about, and if you have not tested your unfounded
assumptions once at least against two actual implementations; displaying
your fantasies here is not going to help anybody.
Last but not least: Would you please follow at least the basic rules of the
natural language you use? "cant", "u" and "i" are not words of the English
language, it should be at least "can't" (short for "cannot"), "you", and
"I". Also English is not Spanish, for example: interrogative sentences are
indicated by only a trailing question mark (and a question like "I think it
will work?" does not make much sense anyway, because nobody but you can
know what you think). You are not using a Web forum here, short of a chat
platform, where your current language style might be an appropriate one.
That said, it is well-known here that I am a speaker of English as foreign
language myself, and even I resent your style. That definitely should make
you reconsider.
See also
<http://jibbering.com/faq/faq_notes/pots1.html>
<http://safalra.com/special/googlegroupsreply/>
regarding your inappropriate posting style.
HTH
PointedEars