focus object en variable? - Forum

Forum Navigation
You need to log in to create posts and topics.

focus object en variable?

hay alguna variable que almacene cuando un inputext gana el foco , y asi pueda poner una condicion

@juancarlos

I could not find a reserved variable (like there is in VisualNEOWin) for the object with focus ... but you can use this code ...

BeginJS

var focused = document.activeElement.id;
//alert(focused);
$App.currentlyFocusedObject = focused;

EndJS

AlertBox "Currently Focused object is ..." "[currentlyFocusedObject" ""

 

I could not find a reserved variable (like there is in VisualNEOWin) for the object with focus ... but you can use this code ...

Will try to add a GetFocusedObject command on next version. Thank you!

Vadim has reacted to this post.
Vadim