I am using an iFrame to look up a course name and display the value in the parent page using Javascript.
document.parent.frmCancellation.txtCourseName.value = 'CUISINE A LA CARTE 2';
Now this code works great in IE but I get the following error from the Firefox Error console;
Warning: reference to undefined property document.parent
I suspect this error is due to the difference in the DOM between IE and FF, but I can't find explicit documentation telling me how to place values on a parent page.
Any help would be appreciated.
Denis
Programmer, Canada
document.parent.frmCancellation.txtCourseName.value = 'CUISINE A LA CARTE 2';
Now this code works great in IE but I get the following error from the Firefox Error console;
Warning: reference to undefined property document.parent
I suspect this error is due to the difference in the DOM between IE and FF, but I can't find explicit documentation telling me how to place values on a parent page.
Any help would be appreciated.
Denis
Programmer, Canada