Is it possible to use JavaScript to change the meta-tags of the page?

Yes, it is.

E.g. to set the meta-description:

document.querySelector('meta[name="description"]').setAttribute("content", _desc);

Leave a Comment