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>