HTMLTableElement.frame

The HTMLTableElement.frame property represents which external table borders to render.

Syntax

JavaScript
HTMLTableElement.frame =
side;
var
side =
HTMLTableElement.frame;

Parameters

  • side is a string with one of the following values:
    void
    no sides. this is the default.
    above
    top side
    below
    bottom side
    hsides
    top and bottom only
    vsides
    right and left sides only
    lhs
    left-hand side only
    rhs
    right-hand side only
    box
    all four sides
    border
    all four sides

Example

JavaScript
// Set the frame of TableA to 'border'
var t = document.getElementById('TableA');
t.frame  = "border";
t.border = "2px";

Specification

  • W3C DOM 2 HTML Specification

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/htmltableelement/frame

API HTML DOM HTMLTableElement NeedsBrowserCompatibility NeedsSpecTable Property Reference Référence