html - Javascript - get element (button) without ID or Class? -


possible duplicate:
get list of input objects using javascript, without accessing form object

how can elements, buttons on page, without class or id?

is there this?

document.getelementsbytype(button) 

edit

my confusion how buttons (not one) without class or id.

the solution ended being

    var buttons = document.getelementsbytagname('button');  (var = 0, len = buttons.length; < len; ++i) { 

but answer led me find out didn't know ask in first place... so, everyone!

document.getelementsbytagname

document.getelementsbytagname('button') 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -