I created links to subfolders of my site without the presence of the index.html file (eG example.com/london/en/ waiting for the default page to load in the example.com/london/en/index.html folder), however I get a page that is simply says forbidden .
After various tests, I found that the page was loaded perfectly when you entered the URL with index.html at the end. I also found that it works fine for another html page. Therefore, it made me believe that the problem depended on this particular html page.
In the end, I narrowed the error to this line of code:
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {window.location='confirmation.html';}"></iframe>
I found that when the style tag was removed and moved to the CSS file that we have, it loaded fine. But I do not know why this solution works! I donβt have much programming experience, maybe now someone can be here?
javascript jquery html css iframe
Sunil jindal
source share