faressoft faressoft - 4 months ago 10
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

You could use the javascript DOM API like this:

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