I've got a hidden object in my head element and I want to access the content of the element when I change the source. I'm doing it like this because putting it directly in the page does not allow for dynamic height and so I want the browser to simply copy the content into a specific element. I already know how to access the element but I don't know how to access the content on all the main desktop browsers.

Could someone post the available methods, I can research the rest once I've got that.