document.getelementbyid but save the content in the id code example Example: getelementbyid document.getElementById("someid");