Home > Web Front-end > JS Tutorial > body text

Get the Param code of object (ActiveX) under IE_javascript skills

WBOY
Release: 2016-05-16 18:46:18
Original
1233 people have browsed it

For the sake of clarity, the following is explained in the simplest HTML and JavaScript. There is such a piece of HTML (the head part is the standard head, and the doctype uses the xhtml-transitional DTD):

Copy code The code is as follows:






< ;/object>


< param name="quality" value="high" />


< /object>

Now, we use two methods to get the number of param parameters of the first object (swf):
Copy the code The code is as follows:

var o = document.getElementsByTagName('object')[0];
alert(o.getElementsByTagName('param' ).length);
alert(o.childNodes.length);

Guess what the results are? Also, guess what o.innerHTML is? You can try it yourself. The above results are 4 and 2 respectively. Isn’t it weird?
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template