Javascript: How Can I Check For "htmlunknownelement"?
I have made a function for to create DOM-elements: The type of DOM-element is specified as the first parameter of the function. For example: div, li, p, h1 ... Now I would like t
Solution 1:
You can check whether the created element is an instance of HTMLUnknownElement
like this:
ret instanceof HTMLUnknownElement
Post a Comment for "Javascript: How Can I Check For "htmlunknownelement"?"