I’ve made a page split into 2 frames. (so, I have ‘[COLOR=”Red”][B]index.html[B][COLOR=”red”]leftFrame.html[B][COLOR=”Red”]mainFrame.html
e.g. my [COLOR=”red”][B]leftFrame.html
[CODE]
<html>
<head>
<title>Navigation</title>
</head>
<body>
<img id=”imgl” src=”imgs/0.png” alt=”” />
</body>
</html>
then my mainFrame.html has the source, as follows;
[CODE]
<html>
<head>
<title>Main</title>
</head>
<body [COLOR=”red”][B]onload=”javascript:document.getElementById(‘imgl’).src = ‘imgs/1.png’;”[/B][/COLOR]>
…
[html content]
…
</body>
</html>
How to reach an element of a “neighbour”-frame???
What must I type instead of
[CODE][COLOR=”red”][B]onload=”javascript:document.getElementById(‘imgl’).src = ‘imgs/1.png’;”[/B][/COLOR]
Thanks in advance ?