faressoft faressoft - 1 year ago 56
Javascript Question

how to get <head> content of the current page with jquery or JS

how to get

<head>
content of the current page

Answer Source

You could use the javascript DOM API like this:

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