I want to use JavaScript to change the appearance of a specific element's links. The CSS code would be:
#element a:link {
color: #000;
}
I am aware that you can modify the style of the element itself, like so:
elementObject.style.color = '#000';
An example of what I am aiming for in pseudo-code would be:
|
V
elementObject.[A:LINK].style.color = "#ff0000";
Is there a way to achieve this with JavaScript?