Is there any way to, as the title says "Show page differently (css) if within iframe". I'm looking for a jQuery / JavaScript method to potentially use a different css stylesheet if the site is within an iframe. Any ideas?
You can inject a different stylesheet if the window is not the top window.
if (window.top!=window.self) { // In a Frame or IFrame } else { // Not in a frame }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With