I wonder what is the mistake

SCGA

BANNED
Joined
Apr 10, 2017
Messages
23
Reaction score
4
Code:
<p><a href="#" onclick="setTimeout(Plus.style.display='none'), 2000">Close</a></p>

I want to close Plus after 2 seconds clicking Close. Currently when I click Close, Plus close immediately without waiting for 2 seconds.
 
Last edited:
I have solve the problem with :

<script>function myfunction(){Plus.style.display='none'} var delay=2000</script>
 
Back
Top