1
It is possible to change the viewport of a page and have immediate effect without having to update it?
Supposing I have the following viewport on the page to display on mobile devices (smartphones and tablets):
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
So I have a button at the bottom of the page, like Full version which, when clicked, calls a Javascript (or jQuery) function that changes the width
of viewport to 1024 pixels wide. This change in the property of <meta>
, via script, already changes the page view immediately or need to make a Reload?
Another thing: the viewport with width defined in pixels, must contain px
or just the number (ex., width=1024,
or width=1024px,
)?