Answers for "change meta tag dynamically javascript"

2

javascript change meta tag

document.querySelector('meta[name="description"]').setAttribute("content", _desc);
Posted by: Guest on January-16-2020
0

dynamically change meta tags javascript

$(document).ready(function(){
    $('title').text("Your new title tag here");
    $('meta[name=description]').attr('content', 'new Meta Description here');
});
Posted by: Guest on August-03-2021

Code answers related to "change meta tag dynamically javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language