Click to See Complete Forum and Search --> : Finding certain types of elements dynamically


CountZero
07-17-2003, 09:48 AM
Greetings,

Is it possible to find all INPUT-objects (Button,Submit,Textfield, etc) in Document.all using JavaScript?

What I want to do is the following,
I have developed a navigation-system which uses buttons only (Since it will be used in an environment where mouses are not available), and it would be perfect if I could, at runtime, dynamically find all INPUTs on a page (Which uses alot of tables for positioning).

I might be stupid, who can't figure it out, but hey, that's me ;)

God bless.

/Viktor

pyro
07-17-2003, 09:50 AM
Try document.getElementsByTagName("input")