Using Objects
작성일 06-09-14 11:36
페이지 정보
작성자서방님 조회 94회 댓글 0건본문
Using Objects
Objects are Microsoft ActiveX Controls or other similar components that provide custom capabilities and services for HTML documents. You can add a control to your document using the object element, and you can gain access to the capabilities and services of the control using its properties and methods from script.
When using objects, be aware that DHTML extends every object by providing these additional properties:
align | classid | code |
codeBase | codeType | |
data | form | |
height | name | |
object | recordset | |
type | width |
If a control has properties with these same names, you will not be able to access the properties unless you preface the name with the object property. For example, assume that an ActiveX control is added to the document using the following:
In this example, there are two widths: an extended property set within the object element, and a property belonging to the control that is set using the param element. To access these from script, you use the following code.
댓글목록
등록된 댓글이 없습니다.