Hi there
I need to modify a custom meta-tag with the value of a <A> tag based on the links onclick event.
I have found code like this : -
Can someone point me in the right direction please
Many thanks
I need to modify a custom meta-tag with the value of a <A> tag based on the links onclick event.
I have found code like this : -
Code:
var metaArray = document.getElementsByTagName("meta");
for(var i=0; metaArray[i]; i++) {
if(metaArray[i].getAttribute("name") == "DC.Date.Modified") {
document.write("<p>Last updated: "+metaArray[i].getAttribute("content")+"</p>");
Many thanks