Answers for "how to check if page is in iframe"

1

how to check if page is in iframe

if ( window.location !== window.parent.location ) {
  // The page is in an iframe
} else {
  // The page is not in an iframe
}
Posted by: Guest on July-14-2021

Code answers related to "how to check if page is in iframe"

Code answers related to "Javascript"

Browse Popular Code Answers by Language