0

How to <div> hide when webpage load....??With GavaScript..??

When the web page loads, there will be <div> Hide. Then Button Click <div> will show how to do this. With GavaScript ....?

12th Dec 2019, 2:06 PM
Hirak Joyti Ghosh
Hirak Joyti Ghosh - avatar
1 Réponse
0
window.addEventListener('load', (event) => { var div = document.getElementById("content").style.visibility = "hidden"; });
12th Dec 2019, 2:30 PM
coddy
coddy - avatar