I have a document which has a nested frameset. I need to access one of the nested frames, named \"sq_main\", and access content inside this frame. Here is my structure:
Try to navigate one step at a time. IIRC, the frames array only works with iframes. Try the selector frame[name = 'sq_main'] instead.
frames
iframes
frame[name = 'sq_main']
Example by Ronny Sherer:
var frameDocument = $('frame[name="mainFrame"]', top.document)[0].contentDocument; $(frameDocument).find('body').prepend('TEST!!!!');