Qualcuno mi può aiutare a far funzionare questo codice anche con mozilla, firefox ecc... ? al momento funziona solo con explorer...
<html>
<head><title>CSS inside iframe</title></head>
<script language="javascript">
function init()
{
var css='<link rel="stylesheet" href="mystylesheet.css" type="text/css">';
document.getElementById('myIframe').contentWindow. document.write(css);
document.getElementById('myIframe').contentWindow. document.write('
P Text</p>
<h1>H1 Text</h1>');
document.getElementById("myIframe").contentWindow. document.designMode = 'On';
}
</script>
<body onLoad="init();">
<iframe id="myIframe" width="500" height="400" frameborder="1"></iframe>
</body>
</html>