Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Simple Timing
SUBMITTED BY:
Guest
DATE:
Aug. 20, 2013, 11:47 a.m.
FORMAT:
JavaScript
SIZE:
299 Bytes
Raw
Download
Tweet
HITS:
954
Go to comments
Report
<!
DOCTYPE
html
>
<
html
>
<
body
>
<
p
>
Click
the
button
to
wait
3
seconds
,
then
alert
"Hello"
.
<
/p>
<
button
onclick
=
"myFunction()"
>
Try
it
<
/button>
<
script
>
function
myFunction
()
{
setTimeout
(
function
(){
alert
(
"Hello"
)},
3000
);
}
<
/script>
<
/body>
<
/html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus