You need to sign in to do that
Don't have an account?
ATS
Window Sizing
I have a button that opens a VF page in a new window to collect a few fields of data. I have the header and sidebar hidden in this new page. I'd like the new page to be about smaller that a normal full window. I can add css width and height on Pageblock, but that doesn't seem to work. Can anyone offer the best way to do this?
You can specify the popup window features, in your case to set the hieght & width, following code can work:
window.open ("http://www.javascript-coder.com",mywindow",
"location=1,status=1,scrollbars=1,width=100,height=100");
Check out the following links as well:
http://www.htmlite.com/JS016.php
http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
AD
--------------------------------------------------------------------------------------
Mark it as an accepted solution if it works and help the community
All Answers
You can specify the popup window features, in your case to set the hieght & width, following code can work:
window.open ("http://www.javascript-coder.com",mywindow",
"location=1,status=1,scrollbars=1,width=100,height=100");
Check out the following links as well:
http://www.htmlite.com/JS016.php
http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
AD
--------------------------------------------------------------------------------------
Mark it as an accepted solution if it works and help the community