Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript domcontentloaded

// initialize the function "init" when the page completely loads
document.addEventListener('DOMContentLoaded', init);

function init() {
	console.log('The page successfully loaded!');
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #domcontentloaded
ADD COMMENT
Topic
Name
3+1 =