Hi,
I wonder if there is anyone who knows how to detect an IFrame breakout condition.
Under the example http://demos.telerik.com/aspnet-ajax/window/examples/default/defaultcs.aspx :
If one selects 'Open New Window' with a URL that has IFRAME breakout detection then the site opens in the main window instead of the newly created RadWindow. I understand there isn't really a way to prevent this however I'm wondering if there's a way to detect it and prevent the main page loading this URL. I would prefer an alert message that tells the user one will navigate away from the page.
The javascript below is not the ideal solution as this confirmation is called on every page refresh, back button etc.
window.onbeforeunload = function () {
return "This will take you away?";
}
An example of a site with IFRAME breakout detection is www.k1664.com
Thanks
I wonder if there is anyone who knows how to detect an IFrame breakout condition.
Under the example http://demos.telerik.com/aspnet-ajax/window/examples/default/defaultcs.aspx :
If one selects 'Open New Window' with a URL that has IFRAME breakout detection then the site opens in the main window instead of the newly created RadWindow. I understand there isn't really a way to prevent this however I'm wondering if there's a way to detect it and prevent the main page loading this URL. I would prefer an alert message that tells the user one will navigate away from the page.
The javascript below is not the ideal solution as this confirmation is called on every page refresh, back button etc.
window.onbeforeunload = function () {
return "This will take you away?";
}
An example of a site with IFRAME breakout detection is www.k1664.com
Thanks