JavaScript Reference/Javascript Properties/tabStop — различия между версиями

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

Текущая версия на 08:22, 26 мая 2010

"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