Skip to content

Instantly share code, notes, and snippets.

@philsinatra
Created February 12, 2013 16:47
Show Gist options
  • Save philsinatra/4771251 to your computer and use it in GitHub Desktop.
Save philsinatra/4771251 to your computer and use it in GitHub Desktop.
Dynamically edit a meta tag
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