Hello, I trying to have an iframe with list box (from 1 domain) option value alert on the parent page (of another domain). This is what i have which i can't seem to get to work, any ideas? Thanks
domain1:
<IFRAME name="if1" SRC=" FRAMEBORDER=0 SCROLLING=no WIDTH=200 HEIGHT=200></IFRAME>
<script>
window.frames['if1'].document.f1.getElementById(document.f1.select2.selectedIndex.value).onChange=function(){
alert('asdf');
}
</script>
domain2 (
<form name="f1" id="f1">
<select name="select2" onChange="javascript:this.options[this.selectedIndex].value,'if1'">
<option value="1">property1</option>
<option value="2">property2</option>
<option value="3">property3</option>
</select>
</form>
domain1:
<IFRAME name="if1" SRC=" FRAMEBORDER=0 SCROLLING=no WIDTH=200 HEIGHT=200></IFRAME>
<script>
window.frames['if1'].document.f1.getElementById(document.f1.select2.selectedIndex.value).onChange=function(){
alert('asdf');
}
</script>
domain2 (
<form name="f1" id="f1">
<select name="select2" onChange="javascript:this.options[this.selectedIndex].value,'if1'">
<option value="1">property1</option>
<option value="2">property2</option>
<option value="3">property3</option>
</select>
</form>