i dunno if anyone has asked this before...sorry if i'm being dumb

anywayz is it possible for someone to hit a button and it delays for like 5 seconds then does the action....this is an example: they hit the button a message pops up and does a simple animation then when the animation is over (about five sec. long) it goes to a link or does the action
i need the code for this if it's even possible...
thx alot in advance...