where should javascript be placed in html 27 Where Should Javascript Be Placed In Html Nov 12, 2011 - I'd put it in a separate .js file and wrap the code so it is executed after the DOM is loaded. If you us… Written By Susan R. Robinson Monday, March 2, 2015 Add Comment Edit