Hello.
I'm trying to solve a problem related to JS and CSS.
I produced an HTML page with several links and buttuns.
I then created a CSS file in order to display a yellow background when
a link is clicked by users.
UL.menu1 LI A:active{
BACKGROUND: yellow; COLOR: black
Naturally, having acted on the A:active property, when a link is
clicked, all the others lose the yellow background.
The fact is that my page have to reload frequently. The effect I'd like
to obtain is that, when the page reloads, the link that was 'active'
before reloading continued to show the yellow background.
Having the chance of retrieving the link ID, I tried to force this
status using a simple js line
activeLinkID.click();
at the body onload event. The click was executed but the yellow
background did not appear.
Is there a way to force an 'active' status via JS on the link ?
I thank you in advance for any help.
Newcomsas