Reference Anchor in other frame
This should be simple but I can't find the syntax. I have an achor in an html page :-
<A name=Test1 href="Background.html" target="main">Background</A>
I want to change the color of the font from a page in a different frame (oh no Frames!) using a Javascript command such as :-
parent.leftbar.Test1.style.color='#000080'; //Leftbar being the name of the other frame.
Anyway, all I get is an error about a null object so I guess this isn't the way to reference it.
Re: Reference Anchor is other frame
Try
window.frames['leftbar'].document.links['Test1'].style.color = '#000080';
Re: Reference Anchor is other frame
"Error: window.frames['leftbar'].document is null or not an object"
Been getting this all day.