How to Embed ActiveX Objects With an HTML Object Tag
- 1). Right-click the HTML file you want to edit. Select "Open With" from the pop-up menu. Double-click "Notepad" to open your text editor. If you have an advanced editor like Visual Studio installed, double-click it instead to open the file in the code viewer.
- 2). Scroll down to the location where you want the ActiveX control located on the page. Insert the following tag into the page code:
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab"> </object>
The classid and codebase variables are provided by the ActiveX developer. This is the class object registered with the web browser when the page opens. The height and width parameters let you size the ActiveX control on your page. - 3). Add parameter settings for the control. For instance, a video ActiveX control has a looping option. This looping option tells the browser if it should stop after the video is played or replay the video. Add the following parameter tags within the "<object>" and "</object>" tags:
<param name="AutoLoop" value="False" /> - 4). Click "File" then "Save" in the main Notepad toolbar. Double-click the HTML file on your desktop to open and view the new changes. This quickly lets you test the coding in your HTML pages.
Source...