The HTMLTableElement interface's frame property is a string that indicates which of the table's exterior borders should be drawn.


HTMLTableElement.frame = frameSides;

var frameSides = HTMLTableElement.frame;


  • fromSides is a string whose value is one of the following values:
    no sides. this is the default.
    top side
    bottom side
    top and bottom only
    right and left sides only
    left-hand side only
    right-hand side only
    all four sides
    all four sides


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


  • W3C DOM 2 HTML Specification

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes Yes Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes ? Yes Yes Yes Yes ?

Document Tags and Contributors

Contributors to this page: fscholz, Sheppy, teoli, kscarfone, riginoommen, ethertank, RobG, Dria, JesseW
Last updated by: fscholz,