开发者

Can't open iframe with File://

this is my code:

<iframe src="file://142.116.7.26/Ress/altamira/index.html" width="100%" height="800" scrolling="no" align="top" frameborder="0" >

Error Inline Fr开发者_JAVA技巧ames

</iframe>

so... I can't open the web in the iframe, why!? If I use a link with the code calling:

href="file://142.116.7.26/Ress/altamira/index.html"

It works.. but with the Iframe can't get anything. I have the Info in safety server.


All modern browsers should prevent display of "local" files using the file protocol in iframes for security reasons.


You specify "file:" but then the rest of the url has a hostname/IP address in it. If it really is a file on the same machine where you are running the browser, then it should have file:/// and a file path, with no hostname/IP address

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜