<!DOCTYPE html> <script> function boom() { document.getElementsByTagName("tbody")[0].style.position = "absolute"; document.getElementsByTagName("table")[0].style.color = "green"; } </script> <body onload="boom();"> <table><tbody></tbody></table>