I have run across a situation where i have an iframe which loads a webpage from a file. I need to be able to inject a css file and a js file into the iframe, so that when the site is being viewed through the iframe, these css rules and script will be applied, but if the site is viewed outside of the iframe, by just navigating to the file thats loaded into the iframe for example, the css and js file don't get loaded..

Is this possible?