cy056

在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口,self是当前窗口, opener是用open方法打开当前窗口的那个窗口。

 

判断当前窗口是否在一个框架中:

<script type="text/javascript">
var b = window.top!=window.self;
document.write( "当前窗口是否在一个框架中:"+b );
</script>

分类:

技术点:

相关文章:

  • 2021-10-15
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-09-03
  • 2021-08-10
  • 2021-07-15
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
相关资源
相似解决方案