Created
February 12, 2013 16:47
-
-
Save philsinatra/4771251 to your computer and use it in GitHub Desktop.
Dynamically edit a meta tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
viewport = document.querySelector("meta[name=viewport]"); | |
viewport.setAttribute('content', 'initial-scale=1.0, user-scalable=no, width=device-width, maximum-scale=1.0'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment