View Full Version : Chrome not loading javascript called from a frame page

03-12-2012, 10:03 PM
Here is the structure I am working with as this html/script was created by the chmProcessor to produce WebHelp files...

index.htm contains:

<iframe id="mainFrame" name="mainFrame" class="full" src=

frameset.html contains:

<frameset cols="20%,80%">
<frame id="treeFrame" src="tree.html" name="treeFrame" />
<frame id="frameCont" src="2_Welcome.htm" name="Welcome" />

tree.html is the navigational panel and contains:

<script type="text/javascript" src="tree.js">

I have placed alert() calls in tree.js. When I load index.htm in Chrome, apparently tree.js is not being loaded because I do not see any alert box and the functionality within tree.js does not work.

Note: The functionality does work in IE and Firefox

If I open tree.html directly in Chrome, the tree.js functionality does get called.

I do not know how to solve this problem or why Chrome is not loading the pages and script correctly. Thanks for your help!

03-12-2012, 10:40 PM
Well I believe I found the answer. Google has some security "feature" to protect you from yourself when it comes to dealing with local files. If I open Chrome with this command:
chrome.exe --allow-file-access-from-files
it works fine.

03-13-2012, 12:47 AM
Yes, I recently stumbled upon the same aspect when trying to use the new FileReader object from a local file.