Search code examples
javascriptprototypejs

prototype - how to delay a call to hide() by 10 seconds


I have the following code:

$('message').show();
$('message').hide();

How do I add a 10 second delay between the show and hide in prototype?

Thanks


Solution

  • $('message').show();
    Element.hide.delay(10, 'message');