Is it possible let the auto-resize the window?

Hi my old friends,
I face a problem as following :
I use the method attachURL() to attach URL via AJAX. I don’t want to there’re scrollbar or unused space in the window .So i wonder whether there’s a way to auto-resize the window whose content is uploaded via AJAX .

For the dynamic content , can window resize itself ?

Many thanks for your great help .


there is auto-resize feature in window. You may change window size by setDimension method:



window fires onContentLoaded event when content is loaded:

/your code here/