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.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论