简体   繁体   中英

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 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM