Forum Moderators: open
Thanks,
Sireesha
var currentElement = ""
...and then you could use the onFocus event of every element on your page...
onFocus(currentElement=this.id)
...to set the value of currentElement to the id of the element that has the focus.
I haven't tested this, it's just an idea. Hope it works!
var currentElement = document.activeElement [msdn.microsoft.com...]
As far as I'm aware this is IE only though. :(