1.防止被iframe
if (window != window.top)
{ window.top.location = location; }

2.允许被信任的网站iframe
var framebustTimer;
var timeout = 3000; // 3 second framebust timeout

if (window != window.top)
{
framebustTimer = setTimeout(
function() { window.top.location = location; }, timeout);
}

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-01-03
  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案