faressoft faressoft - 1 year ago 83
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;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download