开发者

Window resizing issue

开发者 https://www.devze.com 2023-02-03 20:03 出处:网络
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 t

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

精彩评论

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