J
J
jacksilver2019-02-15 14:40:46
JavaScript
jacksilver, 2019-02-15 14:40:46

How to resize the browser window?

Good day.

I have a max resolution on a laptop of 1388x768, but I want it to be defined as fullHD, tk. 1980x1080. I am using chrome. Tell me where to dig?

As far as I understand, resolution is defined something like this:
jQuery
$(window).width();
$(window).height();

or like this:
JavaScript
document.write(screen.width + 'x' + screen.height);

Can I somehow "feed" my data to Java instead of the system data?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2019-02-15
@Casufi

In chrome, there is an adaptive layout debug mode, and there you can set resolutions higher than the resolution of your monitor, and unlike firefox, they even scale it all beautifully
5c66a6ff36402073323971.png

M
Michael, 2019-02-15
@nyakove

The properties of the window.screen object are not writable, so changing them via JS will not work. But you can use the developer tools, as already suggested above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question