-1

I inserted an iframe tag to my HTML page and i want to hide some contents in that iframe. This iframe content is from different origin. I used $("#iFrame").contents() but it is not working. Is this a issue related with browser?

user3171855
  • 27
  • 1
  • 3

1 Answers1

1

You simply can't. Due to browser security restrictions and preventing XSS, most browsers will prevent this. In Google Chrome, you can override this by adding the --disable-web-security parameter when running the browser.

Also, check out this (possible duplicate) SO post.

Community
  • 1
  • 1
andrewgu
  • 1,510
  • 16
  • 22