JavaScript Reference/Javascript Properties/tabStop

Материал из Web эксперт
Перейти к: навигация, поиск

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



"tabStop" is applied to

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



"tabStop" Syntax and Note

Note:
Read and write property. 
Does this element join the tab order functionality.
    
Syntax:
    
defaults.tabStop = value