how block a specific site in iframe without redircting?

  • Profile Image
    sm008089
    Asked on March 04, 2021 at 01:56 AM

    how block a specific site in iframe without redircting?

    also visit here

  • Profile Image
    sm008089
    Answered on March 04, 2021 at 02:00 AM

    Typically this Javascript looks something like this:

    <script type="text/javascript">
    if (top.location.href != self.location.href)
    top.location.href = self.location.href;
    </script>

    also visit here

  • Profile Image
    Lorenz_A
    Answered on March 04, 2021 at 04:05 AM

    Greetings,

    I'm quite not sure what your requirement is. Kindly please elaborate more on what you're trying to accomplish so we can assist you better.

    We will wait for your response.