You need to sign in to do that
Don't have an account?
Varun 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";
}
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.
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";
}
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 Chopra