Home >Web Front-end >JS Tutorial >The difference between innerHTML obtaining param in IE6 and IE7_javascript skills

The difference between innerHTML obtaining param in IE6 and IE7_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:55:281222browse

Code:

Copy code The code is as follows:






View HTML source code








Viewed under IE6:

And In IE7:

IE7 deletes all param tags in object, which puzzles us. When obtaining the object and the HTML code in it through innerHTML, it does not simply extract the original code, but "modifies" it. The result of the "modification" in IE6 is that it gives us a fairly complete param code, while in IE7 the param code is deleted. This difference brings a lot of trouble to our web page coding. The solution is still being conceived. I hope that friends who have encountered this problem can discuss it together.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn