listerner content loaded js
snippet in javascript

listerner content loaded js

user8928

window.addEventListener('DOMContentLoaded', (event) => {
    console.log('DOM fully loaded and parsed');
});