Document compatMode : document : Javascript Objects : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP


JavaScript DHTML  »  Javascript Objects   » [  document  ]   
 



Document compatMode

Please note that some example is only working under IE or Firefox.

    
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3c.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript">
    function function1() {
        alert(document.compatMode);
    
</script>
</head>
<body>
<button onclick ="function1();">CompatMode</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  'expando' Example
2.  Active Element
3.  Document 'URLUnencoded' Example
4.  'URL' Example
5.  Create a Comment
6.  'write()' Example
7.  'writeln()' Example
8.  Execute Command
9.  Document parentWindow
10.  Document referrer
11.  Document design Mode
12.  Document doctype
13.  Document Domain
14.  Document title Example
15.  Document Link color
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.