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

黄舟
Release: 2017-06-30 11:25:47
Original
3733 people have browsed it

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>
Copy after login

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

Then use

document.getElementById("media_id")
Copy after login

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!

Related labels:
source:php.cn
Previous article:html: Detailed explanation of classid in object tag Next article:Detailed explanation of important attributes of tag in html
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