Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

Setting focus - setActive();


Hi

I have....

<body onload="document.forms[0].elements[0].setActive();">

This sets focus to the element, but when pressing TAB it does not go
to the next element. It will go to some other point (link before or
the address in the browser)
Is there another way?

BR
S

jodleren a crit :

> Hi

> I have....

> <body onload="document.forms[0].elements[0].setActive();">

> This sets focus to the element, but when pressing TAB it does not go
> to the next element. It will go to some other point (link before or
> the address in the browser)
> Is there another way?

don't know how you fix your setActive();
I can't reproduce what you say.

=== soluce 1 ===

<body onload="document.forms[0].elements[1].focus();">

=== soluce 2 ===

function setActive(what) {
   what.focus();
  // what.select();

}

<body onload="setActive(document.forms[0].elements[0]);">

--
Stephane Moriaux et son (moins) vieux Mac dj dpass
Stephane Moriaux and his (less) old Mac already out of date

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc