Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 398507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:45:18+00:00 2026-05-12T16:45:18+00:00

Maybe some of you could have ran into the same problem i did. Imagine

  • 0

Maybe some of you could have ran into the same problem i did.
Imagine you have a file on your machine: file:///c:\test.html

And you have an IFrame inside of this file. You need to indicate whether the IFrame contents are loaded or no.

Bacically, what we have here:
1. location, href, or any other property is inaccessible from file:/// to http:///, or backwards.
2. you can’t fire event from the browser window in iframe, or in opposite direction, unfortunately.

Does this problem have a solution?
P.S.: that’s not a hack. it’s a real problem. making some interaction from local machine with website integration.

UPD: I kinda figure out why it’s forbidden. ANY interaction with local files should be forbidden from the web page. It’s kinda cool, i do agree. But isn’t a # hashtag something that can’t harm anyone? 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:45:19+00:00Added an answer on May 12, 2026 at 4:45 pm

    You may find some of these techniques useful: http://softwareas.com/cross-domain-communication-with-iframes

    Edit: Per comments below, these techniques don’t seem to work when accessing file:///c:\<path>\test.html, whereas they do when accessing http://localhost/test.html.

    I think that’s because the file protocol is even more restricted by the browser than the http protocol. The MSDN page on the file protocol states:

    Internet Explorer 6 Service Pack 1 (SP1) no longer allows browsing a
    local machine from the Internet zone. For instance, if an Internet site
    contains a link to a local file, Internet Explorer 6 SP1 displays a
    blank page when a user clicks on the link. Previous versions of Windows
    Internet Explorer followed the link to the local file.

    Whatever technique you were using to get some cross-domain communication was probably blocked by the browser because you were using the file protocol.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I have very strange problem and maybe some of you could help my.
Imagine I have an input file,an output file and a file containing some elisp
A question to maybe some who have worked extensively with WinUSB APIs or user
Does anyone have any advice how to write such app? Or maybe knows some
Say I have some foo :: Maybe Int and I want to bind it
I have some C++ source code with templates maybe like this - doxygen runs
There are two problems I ran into last night which I have resolved now,
I've ran into the following questions at work, and I don't have the experience
I'm testing my Rails application with RSpec, but then I ran into a problem.
There maybe some simlar questions to this but I can't see anything that really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.