JavaScript Reference/Javascript Properties/viewMasterTab

Материал из Web эксперт
Версия от 18:30, 25 мая 2010; (обсуждение)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"viewMasterTab" 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>



"viewMasterTab" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |defaults                                                      |
+----------------+--------------------------------------------------------------+



"viewMasterTab" Possible Values

Possible Values
true 
false.



"viewMasterTab" Syntax and Note

Note:
Read and write property. 
Is the element affected by the viewLink property included in the tab sequence. 
    
Syntax:
    
document.defaults.viewMasterTab = value