So, now I just type in this. Initially, I was going for the iframe target but I had the target on the picture already. What I wanna do is when I click on the image, the description will come out on the second td iframe. How do I link the function to the iframe( the 1st 1)
<script>
function myFunction(){
var resultBox = document.getElementById("scarf1");
if(resultBox == "scarf1.jpg"){ // <= you can put your condition here
resultBox.innerHTML="A soft brushed cashmere scarf featuring the iconic check. The scarf is made in Scotland at a mill with a long heritage in producing cashmere.To create a subtle lustre and soft texture, the cashmere is washed in spring water, then woven on traditional looms and brushed with natural teasels.Measuring 168 x 30cm/66.1 x 11.8in, the design is hand-finished with fringing.";
}</script>
<table>
<tr>
<td width="190px" height="190px">
<a href="scarf1.jpg" target="frame"><img alt="HERITAGE CHECK CASHMERE SCARF" onclick="myFunction()" id="scarf1"height="100" src="scarf1.jpg" width="100" onmouseover="bigImg(this)" onmouseout="normalImg(this)"/></a>
</td>
<td>
<iframe src="Burberry_product_women_accessories_frame2.html" target="frame1" name="frame1" scrolling="no">
</iframe></td>
<td rowspan="4">
<iframe height="750" width="480" target="frame" name="frame" scrolling="no" float="right" src="Burberry_product_women_accessories_frame.html">
</iframe>
</td>
</tr>
<tr>
<td width="190px" height="190px">
<a href="scarf2.jpg" target="frame"><img alt="HERITAGE CASHMERE SCARF" height="100" src="scarf2.jpg" width="100" onmouseover="bigImg2(this)" onmouseout="normalImg2(this)" /></a>
</td>
<td>HERITAGE CASHMERE SCARF</td>
</tr>
<tr>
<td width="190px" height="190px">
<a href="wwallet.jpg" target="frame"><img alt="HAYMARKET CHECK CONTINENTAL WALLET" height="100" src="wwallet.jpg" width="100" onmouseover="bigImg3(this)" onmouseout="normalImg3(this)"/></a>
</td>
<td>HAYMARKET CHECK CONTINENTAL WALLET</td>
</tr>
<tr>
<td width="190px" height="190px">
<a href="wumbrella.jpg" target="frame"><img alt="CHECK FOLDING UMBRELLA" height="100" src="wumbrella.jpg" width="100" onmouseover="bigImg4(this)" onmouseout="normalImg4(this)"/></a>
</td>
<td>CHECK FOLDING UMBRELLA</td>
</tr>
</table>