Reputation: 89
<meta name="geo.region" content="el-gr" />
Is it possible to remove the meta tags just by using JavaScript?
Upvotes: 5
Views: 12846
Reputation: 10675
Select the element & Remove it.
document.querySelector("[name='geo.region']").remove()
this will remove the first meta in the webpage with name having geo.region
Or using jQuery
$("[name='geo.region']").remove()
Upvotes: 7