0
What's the problem?
I have code with a code base from mine and I have test it out and then. 3 websites functions but the 4th doesn't. <!DOCTYPE html> <iframe id="gameFrame" src="https://www.toggo.de/droplets/spiel/wasserschlacht/" width="100%" height="100%" frameborder="0" marginwidth="0" align="center" marginheight="0" allowfullscreen></iframe> <a href ="https://www.toggo.de/droplets/spiel/wasserschlacht">Browser <br />Browser</a>
4 Answers
0
It would help if u share the link of the code made in codeplayground đ
0
Arturop theres the link: https://code.sololearn.com/Wch1NfZndv11/?ref=app
Or do you mean https://www.toggo.de/droplets/spiel/wasserschlacht/
I just need the html code (If this is not right it has functioned in the other 3 codes(These 3 codes I mean:https://code.sololearn.com/W7w51tXMFHkU/?ref=app https://code.sololearn.com/WjhqeH6IfJup/?ref=app https://code.sololearn.com/WIKWMTZOE5I9/?ref=app ))
0
It does work in mozilla firefox if u make an individual index.html file.
In sololearn inside mozilla firefox, it does not work.
In chrome:
Individual index.html file fails when third party cookies is set to block. So you have to allow all cookies. Probably it is set to allow all in firefox by default.
Again inside sololearn it fails even with the cookies allowed.
U should check some articles about "is iframing good practice".
Btw some pages are also set to deny iframing during http requests. But in this case i believe its just a cookies problem that breaks the js code and prevents the page from loading in the iframe.
0
Arturop ok but my problem is not fully solved