javascript change meta tag
document.querySelector('meta[name="description"]').setAttribute("content", _desc);
javascript change meta tag
document.querySelector('meta[name="description"]').setAttribute("content", _desc);
how to use a script to inject a meta attribute in html
document.addEventListener('requireready', function onRequireReady() {
require(['jquery'], function run($) {
$(document).ready(function () {
$(".className").closest("element").attr("tag", "value");
});
});
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us