Is it possible to change the viewport of a page and have immediate effect without having to update it?
Assuming I have the following viewport on the page to show 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, type Full Version which, when clicked, calls a JavaScript (or jQuery) function that changes the% to 1024 pixels wide. Does this change in the width
property via script already change the pageview right away or need to do a reload ?
Another thing: the viewport with width defined in pixels, must contain <meta>
or just the number (eg px
or width=1024,
)?