The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
A BB Code to use og: metas
Folks-
I want to use the og: data to display links to external pages. I thought I could make a BB code that uses javaScript to go get the info. It turns out I can't (at least without some help). It has been many ears since I tried to write javascript—and I'm really rusty. First, I tried: Code:
function getMetas (theURL){ var theTarget = new document() theTarget.location.href = theURL alert(theTarget.location.href) if(theTarget.document.getElementsByName("meta").length>0){ alert("meta tags "&& theTarget.document.getElementsByName("meta").length) }else{ alert("no meta tags") } } When I tried: Code:
function getMetas (theURL){ var theTarget = window.open() theTarget.location.href = theURL alert(theTarget.location.href) if(theTarget.document.getElementsByName("meta").length>0){ alert("meta tags "&& theTarget.document.getElementsByName("meta").length) }else{ alert("no meta tags") } } Am I missing something small or am I on a fool's errand? Any helpful hints you can share? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|