javascript set meta tag code example
Example 1: javascript change meta tag
document.querySelector('meta[name="description"]').setAttribute("content", _desc);
Example 2: append meta tag to head javascript
<script> var link = document.createElement('meta'); link.setAttribute('name', 'shareaholic:url'); link.content = document.location; document.getElementsByTagName('head')[0].appendChild(link);</script>