3
I need to get the meta tag from a specific external url, but I only found examples using jquery to perform this feature, not pure javascript. In pure js, I found this post where is performed what I need, but not on any external page, but on the page itself.
function getVideoContent() {
var metas = document.getElementsByTagName('meta');
for (var i=0; i<metas.length; i++) {
if (metas[i].getAttribute("property") == "video") {
return metas[i].getAttribute("content");
}
}
return "";
}
Does anyone know how I can get meta tag information from any url using pure javascript only?