javascript - How to add meta tag using jQuery? -


this question has answer here:

i want add meta tag in site header using jquery. how may this?

thanks in advance.

try this

<script type="text/javascript">   $(document).ready(function() {      $("head").append("<meta name=viewport content=width=400, initial-scale=0.45, minimum-    scale=0.45/><link rel=apple-touch-icon href=/images/customicon.png/><meta name=apple-mobile-web-app-capable content=no /><meta name=apple-mobile-web-app-status-bar-style content=black-translucent /><link rel=apple-touch-icon-precomposed href=/images/customicon.png/> "); }); 


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -