I have a visualforce page, in which I have a button that open a new visualforce page.
The problem I have is that the new page is too small (like a popup
), and I want to set the width of my new page. It is possible ? And how can I do that ?
Thanks 🙂
Code
<apex:commandButton value="Enregistrer" action="{!enregistrer}"
onclick="enregistrerBlocks()" oncomplete="CloseAndRefresh()" rerender="msg"/>
Best Answer
Assuming you are using
window.open
, set the width and heighthttp://www.w3schools.com/jsref/met_win_open.asp
Use this code implement here http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open