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 -

javascript - What is an alternative to using getElementByClass for hiding multiple elements? -

c# - How to store a 128 bit integer with nHibernate? -