I’m trying to make a function that’ll adjust the dimensions of a named iframe when the user clicks an image. Basically, I’m trying to make an iframe that’ll only populate with information when the user clicks a link (i.e. it’s a drop down frame). Obviously, I’m a newbie, but I thought I could do this by simply adjusting the dimensions of the iframe. The code is…
<script>
function populate{
document.getElementById(“equip”).width = 680;
}
</script>
<table>
<tr>
<td><a href=”#” onClick=populate><img src=”../images/arrows.gif”></a>
</td>
</tr>
</table>
<table width=”680″ height=”104″>
<tr>
<td>
<iframe id=”equip” width=”0%” height=”0%”></iframe>
</td>
</tr>
</table>