How to check the content validity period for sometime

Hi i want to show the content to the user for 10 sec only,after that content should hide. any one give solution to it. how to do that :confused:

Yes, you can use the setTimeout method to wait for ten seconds before calling a function that hides the content.