Adding a meta tag via jquery?

后端 未结 2 1666
轻奢々
轻奢々 2020-12-11 07:32

I need to add this meta-tag in the head section of the page as i need the page to force IE7.



        
2条回答
  •  误落风尘
    2020-12-11 08:06

    $('head').append(' ');

    Though I'm not certain it will have an affect as it will be generated after the page is loaded

    -- edit --

    If you want to add meta data tags for page description, use the SETTINGS of your DNN page to add Description and Keywords. Beyond that, the best way to go when modifying the HEAD is to dynamically inject your code into the HEAD via a third party module.

    Found at http://www.dotnetnuke.com/Resources/Forums/forumid/7/threadid/298385/scope/posts.aspx

    This may allow other meta tags, if you're lucky

    -- edit 2 --

    Additional HEAD tags can be placed into Page Settings > Advanced Settings > Page Header Tags.

    Found at http://www.dotnetnuke.com/Resources/Forums/forumid/-1/postid/223250/scope/posts.aspx

提交回复
热议问题