All ActiveX controls have some common attributes in addition to attributes specific to each individual ActiveX control. An ActiveX control is embedded into a web page using the OBJECT tag and its attributes are submitted to the ActiveX control using the PARAM tag.
| Attribute | CLASSID Value |
|---|---|
| ID | The name of the control; how the control will be referenced in script |
| WIDTH | The width of the control in pixels (visual controls only) |
| HEIGHT | The height of the control in pixels (visual controls only) |
| CLASSID | The class identifier. A string of letters and numbers which uniquely identifies the control |
| CODEBASE | Allows specification of an internet address where the ActiveX control specified can be found and downloaded |
Below is an example of the use of the OBJECT and PARAM tags for embedding an ActiveX object into a web page.
<OBJECT ID="Label3D" WIDTH=150 HEIGHT=100 CLASSID="CLSID:40F07091-8E6F-11D0-8A0A-00A0C90C9B67 CODEBASE="mcsilabl.cab#version1,0,0,45"> <PARAM NAME="Text" VALUE="Thisd is a 3D label"> <PARAM NAME="Angle" VALUE="0"> <PARAM NAME="BorderStyle" VALUE="0"> </OBJECT>