Jump to content

A very very very minor request


GrizzlyJohn

Recommended Posts

This is something that is just not that big of a deal but just kinda gets me every time I sign in to the geocaching site. Could you please make it so my cursor goes to the user name box when the page displays. I know it is no big deal to click on the box to put my cursor there but it would be one less click several times a day. Hey I am lazy and sometimes have poor aim, what can I say. I will even write the code for you. I know you guys are busy. Here's what to do:

 

In the body tag of the page add: LANGUAGE=javascript onload="return window_onload()"

 

In the <script> section of the page add:

function window_onload()

{

form1.username.focus();

return true;

}

 

I think that should do it. Thanks.

Link to comment

quote:
Originally posted by AllenLacy:

When I do it I just put something like the following in the <Body> tag.

 

onLoad="document.form1.username.select()"


You say tomato, I say tomato. Oh that probably does not make any sense unless you hear it.

 

Sure that code should do the trick also. Just a matter of style and in my case standards I have gotten used to from work.

Link to comment

quote:
Originally posted by GrizzlyJohn:

You say tomato, I say tomato. Oh that probably does not make any sense unless you hear it.


Exactly I didn't mean to imply that it was better just tmtowtdi.

 

for those of you not familiar with Perl that means There's More Than One Way to Do It

Link to comment
Guest
This topic is now closed to further replies.
×
×
  • Create New...