Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

append a meta tag in head tag using javascript

<script>
var meta = document.createElement('meta');
meta.setAttribute('http-equiv', 'X-UA-Compatible');
meta.setAttribute('content', 'IE=Edge');
document.getElementsByTagName('head')[0].appendChild(meta);
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #meta #tag #head #tag #javascript
ADD COMMENT
Topic
Name
6+7 =