Im trying to show different divs based on meta keywords.
This is my html:
<div id="sv"></div>
<div id="fi"></div>
<div id="uk"></div>
<div id="dk"></div>
Meta tag, which changes dynamically as the divs above:
<meta name="keywords" lang="fi">
Im using a javascript to do the exact same thing bases on title tags, and would love if it would work for meta tags aswell:
$('document').ready(
function () {
function _title() {
var allow = document.title.search("text");
if (allow > -1) {
document.getElementById('demo').style.display = "block";
}
}
window.onload = _title;
}
);
This script also needs the div (demo) to be set as display none for reference if someones sees this and trying to use it. I cant use jquery either.