Pages

Saturday, August 16, 2014

get head content of page with jquery

You can use this code:
With Jquery

$("head")
//for example:
alert($("head").html());

With JS:

var headContent = document.getElementsByTagName("head")[0].innerHTML;

No comments:

Post a Comment