'Specify frames of a table'에 해당되는 글 1건

  1. 2010.02.19 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>

Posted by 1010