Home >Web Front-end >HTML Tutorial >The html Object tag calls the control registry to find the control classid method

The html Object tag calls the control registry to find the control classid method

黄舟
黄舟Original
2017-06-30 11:25:473730browse

1. Open the registry;

2. Open HKEY_CLASSES-ROOT / CLSID ;

3. Select CLSID and right-click;

4. Select Search, check the option: Data, enter the control name, for example Searchmedia;

5. Click Search;

You will see the search results as: {00022601-0000 -0000-C000-000000000046}, the string in the brackets is the clsssid.

Write the object tag in Html, as follows:

<OBJECT classid="clsid:00022601-0000-0000-C000-000000000046"
	  id="media_id" name="media_name" width="0" height="0" >
</OBJECT>

This completes the object tag's method of calling the control.

Then use

document.getElementById("media_id")

to get the control object,

Then you can call the control's methods and properties . The html Object tag calls the control registry to find the control classid method



##

The above is the detailed content of The html Object tag calls the control registry to find the control classid method. For more information, please follow other related articles on the PHP Chinese website!

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