0

Why the Tag iframe did not work when the URL was finished by .com?

<iframe name="W3" src="https://www.codecademy.com"></iframe>

This tag did not work becouse it was finishing URL (.com)

Pedro Estrada
  • 2,384
  • 2
  • 16
  • 24

1 Answers1

0

I believe it has to do with this stackoverflow question: How to set 'X-Frame-Options' on iframe?

For example if we change the url to https://jquery.com, the iframe works.

<iframe name="jquery" src="https://jquery.com"></iframe>

Therefore, I dont think you can use the site you're trying to use in an iframe.

Pedro Estrada
  • 2,384
  • 2
  • 16
  • 24