The Easiest Way to Save and Share Code Snippets on the web

Change meta data of an HTML page

javascript | by: fplag

posted: Aug, 10th 2009 | jump to bottom

x=document.getElementsByTagName("meta");
 
for (i=0; i < x.length; i++) {
	if (x[i].name == "generator") {
                	x[i].name = "WT.ad";
		x[i].content = "123456"
 
	}
}
219 views