Sale is live! Enjoy 70% Off! Use Credit/Debit Cards in India and PayPal outside of India for better experience!

How to check if page opened in iframe

To check if page opened in iframe you can compare window.self and Check the function below.

Source Code:

	function is_in_iframe() {
		try {
			return window.self !==;
		} catch (e) {
			return true;

Free - Download it right now!


Include all files

Demo Download
Compatible Browsers

Chrome, Firefox, Safari, Opera, IE9+, Edge

Technologies Used

HTML 5, JS, jQuery

Reviews and Comments