I want to resize a page dynamically so that it removes the scrolls

i want to resize both heights and widths..
I want to bring the size of heights and widths of the scrollls..and resize based on it

making overflow:hidden wont solve it.. because it will remove scrolls but wont resize page based on data I have

I am opening the popup like this

features = 'width=' + pos.width + 'px, height=' + pos.height + 'px, left='+pos.left+', top='+pos.top+', resizable=yes' + features;
dlg = window.open(String('about:blank'), '', features);
doc=dlg.document;
doc.open();
doc.write("<title>"+title+"</title><iframe name='frame1.............

How can Iresize this window dynamically.thank you

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.