Tryit Editor v1.4

<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>100</td> <td>200</td> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> <br /> <input type="button" onclick="aboveFrames()" value="Show above frames"> <input type="button" onclick="belowFrames()" value="Show below frames"> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself