I have following html: 

```
<table>
    <tr>
        <td class='tclone' id='clone'></td>
         <td class='loader' id='loader'>
              <div id='tdiv' style="height:630px; width:835px; overflow:auto;"></div>
         </td>
    </tr>
</table>

```

I open this HTML in a new window and JavaScript append contents to tclone and tdiv.
tdiv specifically loads a image. I needed to give the width and height parameters to 
div as it was overflowing past the window, also overflow parameter allows scroll-bar inside td. This solution works with fixed size window -
but I want a mechanism, such that when user resizes the window the div also gets expanded 
and the div scroll-bars are also adjusted to match the new window size.

any suggestions?