New Modeless Window based on contents

New Modeless Window based on contents

Hi,
I have a requirement to open a new mode-less window based on its contents. That means window should be
resizable. We can not give the definite size to window.
So how to provide size to the window dynamically using Jquery/Javascript/AJAX?

Please provide solution ASAP.

Thanks,
Smita