'viewInheritStyle' Example : viewInheritStyle « Javascript Properties « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Properties » viewInheritStyle 




'viewInheritStyle' 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>

    
      
      














Related examples in the same category
1.'viewInheritStyle' Syntax and Note
2.'viewInheritStyle' Possible Values
3.'viewInheritStyle' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.