Listerner Content carregado JS
window.addEventListener('DOMContentLoaded', (event) => {
console.log('DOM fully loaded and parsed');
});
Doubtful Dolphin
window.addEventListener('DOMContentLoaded', (event) => {
console.log('DOM fully loaded and parsed');
});
document.addEventListener('DOMContentLoaded', (event) => {
console.log('DOM fully loaded and parsed');
});
// initialize the function "init" when the page completely loads
document.addEventListener('DOMContentLoaded', init);
function init() {
console.log('The page successfully loaded!');
}