Skip to content Skip to sidebar Skip to footer

Top.frames Wont Work In Chrome

I have 3 html pages. main.html, page1.html and page2.html. I am displaying page1.html and page2.html in main.html using following code.

Solution 1:

Give your FrameSet and your Frame an ID:

var $fs = $("#fs");
var f2 = $fs.find("#f2");

f2 is now a jQuery object.


Solution 2:

Issue was with Chrome security flag for local files i.e., file:/// . After launching Chrome with "--allow-file-access-from-files" flag option, top.frames worked.

Also I found a useful document on Inter-Frame Communication with JavaScript here.


Post a Comment for "Top.frames Wont Work In Chrome"