javascript - Test if object is a DOM element -


A JavaScript function gets a argument that can be a DOM element or not. How does the logic ensure that the argument is a DOM element and not another object?

With modern browsers, I think this is something like

  Examples of examples and example text / text node    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -