function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Varun ChopraVarun Chopra 

Iframe in visual force page redirectiong to Iframe Url

 

Hi

I have added an Iframe in my visual force page. For some sites it is redirecting to the Url itself. This is due to the code used in the wesite to prevent frame brusting.

I tried to use Sandbox=" " property of html5 but it doesn't work.

I also used following javascrippt code.

window.onbeforeunload = function (evt) {    

      return "This will end your session";
}



This image is not available because: You don’t have the privileges to see it, or it has been removed from the system

But it shows an popup box with two buttons stay on page and leave page every time my page refresh. Is there any way to stop this redirection without showing this popup.
Varun ChopraVarun Chopra
User-added image