You can try and check for the referer, which should be the parent site if you’re an iframe
you can do that like this:
var href = document.referrer;
More Related Contents:
- Access parent URL from iframe
- cross-domain iframe resize
- javascript access parent DOM across domains?
- Unsafe JavaScript attempt to access frame with URL
- How can I access the DOM elements within an iFrame
- How is it possible for an iframe to access its parents DOM?
- How can two instances of a userscript communicate between frames?
- how to resolve iframe cross domain issue [duplicate]
- Cross sub domain iframes and JavaScript
- iframe not reading cookies in Chrome
- Cross domain iframe content load detection
- How can I access the contents of an iframe with JavaScript/jQuery?
- jQuery AJAX cross domain
- How to get the body’s content of an iframe in Javascript?
- How to set an iframe src attribute from a variable in AngularJS
- How to identify if a webpage is being loaded inside an iframe or directly into the browser window?
- How to check if iframe is loaded or it has a content?
- How do I send an AJAX request on a different port with jQuery?
- Detect iFrame embedding in Javascript
- How do I get a computed style?
- Get IFrame’s document, from JavaScript in main document
- Write elements into a child iframe using Javascript or jQuery
- getting access is denied error on IE8
- Is CORS a secure way to do cross-domain AJAX requests?
- How to auto-size an iFrame? [duplicate]
- Javascript module not working in browser?
- Refresh iFrame (Cache Issue)
- What’s the best way to set cursor/caret position?
- Chrome userscript error: “Unsafe JavaScript attempt to access frame”
- Access-Control-Allow-Origin Error At Android 4.1