Last post Oct 09, 2017 05:26 AM by Eric Du
Oct 07, 2017 04:56 AM|wmec|LINK
How to adjust this line
var myWindow = window.open(url, "myWindow", "width=1250, height=1000");
to ensure the window is maximized?
Oct 07, 2017 07:46 AM|PatriceSc|LINK
You can't really. At best you could get the screen size and use those values (or maybe size the window based on its content ?)
Keeping the user in control is a principle for web features. winow.open should be likely avoided in particular if you want to support mobile devices. Maybe be a "fake popup" would be enough ?
Oct 09, 2017 05:26 AM|Eric Du|LINK
According to your needs, about how to open a maximized window, please check the following sample code:
var win = window.open('http://www.google.com', '', 'scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=no,status=no'); win.moveTo(0, 0); win.resizeTo(window.screen.availWidth, window.screen.availHeight);