Click to See Complete Forum and Search --> : clearing the contents of a frame frm a child window...


suganya
10-29-2003, 12:11 PM
i have a window with 7 frames - on click of a button in my 2nd frame, i open a modal dialog with a cancel button....
now, when i click on the cancel button i want to clear the contents of the 5th frame and return to the main window....

my 5th frame name is searchResults...

i tried...opener.parent.searchResults.document.write('')
but it keeps saying searchResults is null or not an object...

Khalid Ali
10-30-2003, 07:41 AM
use this
top.opener.parent.frameName
or the best that never fails is acces the frame by its index in the frameset array

top.opener.parent.frames[4]