I am trying to set iframe's HTML code with JavaScript, works fine with Firefox and Chrome but shows only the link, without the styling with Internet Explorer 9.
The JavaScript code:
window.frames["iview"].document.body.innerHTML = txt;
The txt variable gets the following HTML code:
<!DOCTYPE HTML>
<html>
    <head>
        <style type="text/css">
            a:link {
                color: #0000C0;
                background-color: #FFFFFF;
                text-decoration: none;
                target-new: none;
            }
            a:hover {
                color: #0000FF;
                background-color: #808000;
                text-decoration: underline;
                target-new: none;
            }
        </style>
    </head>
    <body>
        <a href="http://www.domain.com">link....</a>
    </body>
</html>
Internet Explorer shows the link, but not the CSS style...
 
     
     
    