Perhaps some of you may have faced the same problem as me. Imagine that you have a file on your computer: file: /// c: \ test.html
And you have an IFrame inside this file. You need to indicate whether the contents of the IFrame are loaded or not.
Itβs bass that we have here: 1. location, href or any other property is not accessible from the file: /// to http: /// or back. 2. You cannot fire an event from a browser window in an iframe or in the opposite direction, unfortunately.
Does this problem have a solution? PS: This is not a hack. this is a real problem. interaction with the local machine with site integration.
UPD: I understand why this is prohibited. Any interaction with local files should be prohibited from the web page. This is great, I agree. But isn't a hashtag something that can harm anyone ?: (
source share