开发者

on open window browser

开发者 https://www.devze.com 2022-12-21 13:29 出处:网络
is it possible to default a window size to 1280开发者_开发知识库 width on websites not full screen?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消