document.getElementById('root') newtab code example Example: getelementbyid document.getElementById("someid");