how to auto resize right iframe when i click my php page link .can it is possible to set auto resize my right iframe.

<table width="162" height="386" border="1" class="indextable">
  <tr>
    <td><iframe src="mmmmaaaammmmaaa.php" width="180" height="445"  frameborder="0" scrolling="no" hspace="0"></iframe>

</td>
  </tr>
</table>
<table width="168" height="154" border="1" class="chat">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
 <iframe name="right"> </iframe>

If you give it an ID, in javascript you could do something like

var iframe = document.getElementById('thatId');
iframe.width = '1234px';
iframe.height = '666px';

But I'm not sure if that's exactly what you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.