I'm trying to change the element in one frames html with controls contained inside another frame. I can't however get it right to achieve this.
I basically have this:
<a href = "#" id = "c1" onclick = "document.getElementById('text').color = 'red'">red</a>
which is meant to change this.
<p id = "text">dsdsdsdsd</p>
I can't however figure out how to do this the right way.
Edit:
The main page for this looks as follows:
<frameset cols = "15%, *" frameborder="100" border="1" framespacing="1">
<frame src ="bookMenu.html" scrolling = "no"/>
<frameset rows = "*, 10%" frameborder="100" border="1" framespacing="1">
<frame src ="book1_intro.html" scrolling= "yes" name = "main"/>
<frame src ="book_controls.html" scrolling= "no" name = "control"/>
</frameset>
The Calling button is in the framed named control and the destination is in the frame named main