vgonzalez
10-21-2003, 01:01 AM
Greetings,
I found that IE supports being able to get the current active Element, is this an IE only feature or is there another way to get the current active element of a form?
Essentially I have a forum with a number of buttons that toggle to different settings depending on the status of things. I am currently using one forum and one verify JavaScript function to submit. The names of each of these buttons have been built up to contain information on the different items on the page. These names can change.
I would like to have the JavaScript be more descriptive in it messages, but I am not sure how to retrieve the name of the button that was pressed. I know I can loop through the elements, but I don't know how to tell which button the user pressed.
Please let me know if submitting code or more details would be helpful at this time or not.
Thanks!
~vgonzalez
I found that IE supports being able to get the current active Element, is this an IE only feature or is there another way to get the current active element of a form?
Essentially I have a forum with a number of buttons that toggle to different settings depending on the status of things. I am currently using one forum and one verify JavaScript function to submit. The names of each of these buttons have been built up to contain information on the different items on the page. These names can change.
I would like to have the JavaScript be more descriptive in it messages, but I am not sure how to retrieve the name of the button that was pressed. I know I can loop through the elements, but I don't know how to tell which button the user pressed.
Please let me know if submitting code or more details would be helpful at this time or not.
Thanks!
~vgonzalez