Specify frames of a table : Table « HTML « JavaScript DHTML

Home
JavaScript DHTML
1.Ajax Layer
2.Data Type
3.Date Time
4.Development
5.Document
6.Dojo toolkit
7.Event
8.Event onMethod
9.Ext JS
10.Form Control
11.GUI Components
12.HTML
13.Javascript Collections
14.Javascript Objects
15.Javascript Properties
16.jQuery
17.Language Basics
18.Mochkit
19.Mootools
20.Node Operation
21.Object Oriented
22.Page Components
23.Rico
24.Scriptaculous
25.Security
26.SmartClient
27.Style Layout
28.Table
29.Utilities
30.Window Browser
31.YUI Library
JavaScript DHTML » HTML » Table 
Specify frames of a table
 

<html>
<head>
<script type="text/javascript">
function aboveFrames(){
    document.getElementById('myTable').frame="above"
}
function belowFrames(){
    document.getElementById('myTable').frame="below"
}
</script>
</head>

<body>
<table id="myTable">
    <tr>
        <td>a</td>
        <td>b</td>
    </tr>
    <tr>
        <td>c</td>
        <td>d</td>
    </tr>
</table>
<form>
    <input type="button" onclick="aboveFrames()" value="Show above frames">
    <input type="button" onclick="belowFrames()" value="Show below frames">
</form>
</body>
</html>



           
         
  
Related examples in the same category
1.Tabular data in Javascript with hyper link
2.Change the width of a table border
3.Change the cellPadding and cellSpacing of a table
4.Change table row height
5.Specify rules for a table
6.Create table caption
7.Deleting table rows
8.Adding table rows
9.Align the cell content in a table row
10.Change the cell content in a table row
11.Vertical align the cell content in a table row
12.Align the cell content in a single cell
13.Vertical align the cell content in a single cell
14.Adding cells to a table row
15.Change the colspan of a table row
16.Insert table row: the uniqueID Property
17.Using the cloneNode Method
18.Cycling Through Table frame Property Values
19.Replacing Table Cell Content
20.Inserting/Removing Row Elements
21.Modifying Table Columns
22.Accessing userProfile Data
23.Cycling Through Table rows Property Values
24.Using the Data Binding record Number Property
25.Using the offsetParent Property
26.Transforming JavaScript Data into HTML Tables
27.Transforming JavaScript Data into HTML Tables with HyperLink
28.Create a table
29.Change table border width and cell padding
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.