I am trying to make a way of briefly highlighting the text on named links - but only for a few seconds.
<a href="#faq1"onClick="document.getElementById('faq1').style.color='#f00'">
So on a list of FAQs - it jumps to the proper ID, changes the color to red for a few seconds as a visual cue to the end user (the answer is here). but then returning to normal color and the interval is complete.
How do I make the above function to work for only a set period of time?