I have made a div with id "about" with display:none and I wrote this script :
function showbox() {
document.getElementById('about').style.display="block"
};
And added the function as an event to another div :
<div class="button" onClick="slide();setTimeout(showbox(),3000)">About</div>
So that when the user click on the div with class "button" the div with id "about" will appear after 3 seconds, the code works with the showing part but it doesn't delay anything ! Note: the function slide() exists and works perfectly and it's not interfering with anything so don't question it.
Please tell me what's wrong. Thanks.