开发者

Window resizing issue

I have an application that open's some dynamic popup either using window.open() or using window.showModalDialog() the content of jsp's being popped up varies and is dynamic in nature, can i adjust the page size on addition of new fields dynamically?

this toggle Message is called on change of开发者_JS百科 a radio button

toggleMessage(element){ var versionNoCreated; if(element.value == 'yes') { window.dialogWidth='20px'; //window.resizeTo(20,20); } else { window.dialogWidth='200px'; //window.resizeTo(200,200); } }


You mean

window.resizeTo(x,y) or window.resizeBy(incrementX,incrementY)

for the window open and

window.dialogWidth='x px'; and window.dialogHeight='y px';

for the modal dialog

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜