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?
Asked
Active
Viewed 129 times
-1
-
1How did you manage to ignore all suggestions when starting to write this question? – mplungjan Aug 03 '15 at 17:41
1 Answers
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.