On my computer, I'm using a custom adblock based on HOSTS redirection (so I can have adblock in Chrome). I'm running IIS on my machine, so I have a custom blank 404 error that displays when an iframe
-based ad is displayed on a page.
I've modified my 404 error to inherit its background color from its parent so that the ad doesn't look obnoxious on sites with a non-white background. My next challenge is to use my 404 page to completely collapse the iframe
so that it doesn't display on the page at all.
Is it possible to alter the containing <iframe />
tag from within the iframe? I just want to change the height & width attributes if this is possible. If so, how would I go about doing this?