JavaScript Reference/Javascript Properties/viewLink — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
"viewLink" Example
<!--
Example revised from
The Web Programmer"s Desk Reference
by Lazaro Issi Cohen and Joseph Issi Cohen
ISBN: 1593270119
Publisher: No Starch Press 2004
-->
<html xmlns:yourNs>
<head><?import namespace="yourNs" implementation="yourHTC.htc"></head>
<body><yourNs:yourTagName></yourNs:yourTagName>
</body>
</html>
<!--
Contents of yourHTC.htc:
-->
<public:component tagName="yourTagName">
<attach event="oncontentready" onevent=contentReady() />
</public:component>
<script language="JavaScript">
function contentReady(){
defaults.viewLink = document;
defaults.viewInheritStyle = false;
defaults.viewMasterTab = false;
}
</script>
<body>
<button onclick="alert(defaults.tabStop);">tab stop</button>
<button onclick="alert(defaults.viewLink);">tab viewLink</button>
<button onclick="alert(defaults.viewInheritStyle);">tab viewInheritStyle</button>
<button onclick="alert(defaults.viewMasterTab);">tab viewMasterTab</button>
</body>
"viewLink" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |defaults |
+----------------+--------------------------------------------------------------+
"viewLink" Syntax and Note
Note:
Read-only property.
Retrieves the document object that originally contained an element.
Syntax:
document.defaults.viewLink