javascript - Get the input type of a textbox -
i making chrome extension trying listen mouse clicks using message passing.
i want know if possible obtain input type of textbox when mouse ic clicked on textbox ?
the type of input property on element.
for example, can open chrome inspector on page , type in console:
var firstinput = document.getelementsbytagname('input')[0]; firstinput.type; // outputs "text"
edit: bind click on these elements , type event.target
property of event.
Comments
Post a Comment