HTML 계통도에서 해당 개체를 반환한다.

Script[oVal=]styleSheet.owningElement
HTML없음
인수
oVal : (속성 개체)
owningElement 속성값은 HTML 계통도에서 해당 개체이다.

이 속성은 읽기전용이며 디폴트값은 없다.

특기

owningElement 속성은 일반적으로 스타일쉬트(style sheet)를 정의하는 style이나 link 개체를 반환한다.

적용
개체scriptHTML규격IE
styleSheet[oVal=]styleSheet.owningElement없음없음IE4.0(win16,win32,ce,unix,mac)

property
owningElement 속성
owningElement</b> 속성이전페이지로페이지 맨위로페이지 맨아래로
styleObj 적용된 문자열
<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>
property
owningElement 속성
견본
이전페이지로페이지 맨위로
최종 수정:
07/17/2025 17:07:11
KoXo Homepage
All right reserved
비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다.
오류가 나면 정상적 접속으로 시도해 보세요.
http://koxo.com/lang/js/property/owningElement.html