HTML 계통도에서 해당 개체를 반환한다.
![]() | Script | [oVal=]styleSheet.owningElement |
HTML | 없음 |
이 속성은 읽기전용이며 디폴트값은 없다.
이 owningElement 속성은 일반적으로 스타일쉬트(style sheet)를 정의하는 style이나 link 개체를 반환한다.
개체 | script | HTML | 규격 | IE |
---|---|---|---|---|
styleSheet | [oVal=]styleSheet.owningElement | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
![]() | owningElement 속성⇒ | ![]() | ![]() ![]() ![]() |
<STYLE id="styleObj">div.testClass{color:brown;font-weight:bold}</STYLE> <DIV class="testClass">styleObj 적용된 문자열</DIV> <SCRIPT> oObj=document.all.tags('style')[0]; document.write('oObj.nodeName=<FONT color=blue>' +oObj.nodeName+'</FONT><BR>'); document.write('oObj.styleSheet.owningElement.nodeName=<FONT color=blue>' +oObj.styleSheet.owningElement.nodeName+'</FONT><BR>'); document.write('oObj.styleSheet.owningElement.id=<FONT color=blue>' +oObj.styleSheet.owningElement.id+'</FONT><BR>'); document.write('oObj.styleSheet.owningElement.styleSheet.cssText=<FONT color=blue size=-1>' +oObj.styleSheet.owningElement.styleSheet.cssText+'</FONT><BR>'); document.write('document.all.tags("link")[0].styleSheet.owningElement.nodeName=<FONT color=blue>' +document.all.tags('link')[0].styleSheet.owningElement.nodeName+'</FONT>'); </SCRIPT>
![]() | owningElement 속성 | ⇒ | ![]() ![]() |
최종 수정: 07/17/2025 17:07:11 | ![]() All right reserved | 비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다. 오류가 나면 정상적 접속으로 시도해 보세요. | http://koxo.com/lang/js/property/owningElement.html |