Gitti
asked on
Applying a CSS Rule with JS
Hi,
there is a line of JavaScript, which applies a CSS Rule "on click" or "on Rollover" to a specific item on the page, e.g. to a TD or to a font.
As I can remember (it is very long time ago), it was something like "onClick= this.style ...", But I'm not sure.
Does somebody knows about it?
Best thanks, Gitti
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this.style.backgroundColor
this.style.fontColor but font color might just be color
this.style.fontColor but font color might just be color
ASKER
<span onclick="this.backgroundco
I don't know why it doesn't work?
Many thanks.