can someone help me please i am trying to make this javascript start its function after a 3 second delay using time out.
I am still learning javascript and jquery and would be grateful if someone could show me where im going wrong and how to fix it.
Thank you.
<script type="text/javascript">
setTimeout(function(){
window.onload = function showPopUp(el) {
var cvr = document.getElementById("cover")
var dlg = document.getElementById("dialog")
cvr.style.display = "block"
dlg.style.display = "block"
if (document.body.style.overflow = "hidden") {
cvr.style.width = "1024"
cvr.style.height = "100%"
}
}
},3000);
</script>