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

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -