S
Startuppk
The following code for some reason does not work in Firefox 2.x. It
does work however in IE and Opera.
The code is found within an iframe and I am trying to access the
document object of the parent without success in Firefox.
The parent document is located at http://mysite.com (domain is
mysite.com)
The iframe document is located at http://images.mysite.com (I have
used javascript to set the domain to mysite.com)
iFrame Code :
<script language="javascript">
document.domain = "mysite.com";
var par = window.parent.document;
par.getElementById('alert_user').innerHTML = "Select an image";
</script>
The script basically stops when it hits the par.getElement line in
Firefox.
Any help with issue would be appreciated,
does work however in IE and Opera.
The code is found within an iframe and I am trying to access the
document object of the parent without success in Firefox.
The parent document is located at http://mysite.com (domain is
mysite.com)
The iframe document is located at http://images.mysite.com (I have
used javascript to set the domain to mysite.com)
iFrame Code :
<script language="javascript">
document.domain = "mysite.com";
var par = window.parent.document;
par.getElementById('alert_user').innerHTML = "Select an image";
</script>
The script basically stops when it hits the par.getElement line in
Firefox.
Any help with issue would be appreciated,