document.createElement("meta") code example
Example: 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>