I'm trying to apply a CSS class that is defined in the head
of an iframe
to an element in the main document.
Is there an easy way - other than copying the class from the iframe's head to the main document's head with Javascript - to access that class and apply it to the main doc?
Something like this (which obviously doesn't work) in the main doc would be awesome:
<div class="#iframe.classtoapply">lorem ipsum</div>