Identifying the active html element in Ax

Hii… Im struck up with the problem here…

I have a form designer… which shows the a Html page in a form…I have a EDIT a button in form designer and

when a html control( button,text box,checkbox etc) is selected and edit buttion is clicked…I need to show a dialogue with the id of current selected active control.

I am not able to identify the active control from the html file… cud u please suggest me… what can i do to identify the active control and fetch its id into dax dialog box…?

I am unable to post the images here… :frowning:

No idea…