on open window browser
is it possible to default a window size to 1280开发者_开发知识库 width on websites not full screen?
If we can default it to that size would it be a problem for people who only has their resolution set on 1024?
is it possible to default a window size to 1280 width on websites not full screen?
- Yes, you can set a browser window size with javascript.
If we can default it to that size would it be a problem for people who only has their resolution set on 1024?
- The best practice is to check the screen resolution before you do this, and you can check that with javascript as well.
Use Javascript
window.open ("http://www.javascript-coder.com",
"mywindow","resizable=1,scrollbars=1,width=1280,height=250");
Check here
scrollbars=1 will take care of the 1024 screen size.
精彩评论