[jQuery] OT: iframes and FF
I'm hoping someone can help with what is basically a non-JQ question. I'm trying to write to an iframe in Firefox. I have something working in IE, but I can't work out (or even find documentation) how to do this in Firefox.
Here's my test:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"" xml:lang="en" lang="en">
<head>
<title>test</title>
<script type="text/javascript">
function writeFrame() {
if (document.all) frm1.document.write("Works in IE");
document.getElementById("frm1").innerHTML="Not in FF";
}
</script>
</head>
<body>
<div>
<a href="javascript:writeFrame();">Write to frame</a><br />
</div>
<iframe id="frm1" style="height:50px;width:50px;top:30px;"></iframe>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/