Innertext, insertadjacentelement, insertadjacenthtml, insertadjacenttext, and other differences _ javascript skills
Source: Internet
Author: User
Innertext, insertadjacentelement, insertadjacenthtml, insertadjacenttext, and other differences innerText attributes can be used in IE browsers to obtain the text content filtered out by the current element after HTML Tags, which is useful in some cases. However, similar non-standard attributes/methods are not necessarily supported in other browsers.
Such as insertAdjacentElement, insertAdjacentElement, insertAdjacentHTML, and insertAdjacentText. If you need to use these non-standard methods or the existing Code uses these methods in large quantities, you must provide prototype definitions for other browsers. For example:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.