'scope' Example : scope « 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 » scope 




'scope' Example

    
<html>
<body>
<table>
   <tr>
      <th id="th1">Row 1</th>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
      <td id="td1">Cell info 1</td>
      <td>Cell</td>
   </tr>
</table>
<script language="JavaScript">
    document.all.th1.scope = "colgroup";
</script>
<button onclick="alert('This cell provides header information for its col.');"
Cell info 1
</button>
</body>
</html>

    
      
      














Related examples in the same category
1.'scope' Syntax and Note
2.'scope' Possible Values
3.'scope' 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.