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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -