If I put a div in the head and display:none, than use JavaScript to display it, will this work?
Edit:
I have stuff loaded in AJAX. And as my AJAX changes the
For anyone trying to change og:title meta tags (or any other). I managed to do it this way:
document.querySelector('meta[property="og:title"]').setAttribute("content", "Example with og title meta tag");
Attention that the 'meta[property="og:title"]' contains the word PROPERTY, and not NAME.