Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/09/2009, 15:38
Avatar de jamesjara
jamesjara
 
Fecha de Ingreso: mayo-2008
Ubicación: san jose
Mensajes: 449
Antigüedad: 16 años
Puntos: 7
De acuerdo Rellener Field focus

Hola estoy desarrollando una EXTENSION para mozilla.

Necesito que al hacer click en un boton, se agregue X texto a el ultimo FIELD/CAMPO ACTIVO! de la pagina web.

Como logro eso?
tengo una idea debe ser asi
Código:
function fill(){
  var focused = LAST FOCUS ELEMENT IN THE HTML PAGE,OR ACTIVE TAB WEB;
  document.getElementById("focused").value .= "NEW VALUE";
}
<button label="add text to field" oncommand="fill()"/>
Es algo asi como un html WYSIGYW pero no es eso..
__________________
X7CLOUD El webservice latino!
Compatible
con mysql,sql,sqlitte.
Compatible con extjs , sencha , smargwt, Gwt , Jquery , Charts, Streaming.