faressoft faressoft - 8 months ago 38
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;