如题,如有人帮解决,小生感激不尽!
分实在不够,请谅解!

解决方案 »

  1.   

    if(window.top == window){
    alert("没有被嵌套!");
    }
      

  2.   

    判断 top.location.href的域名是不是自己的
      

  3.   

    <script language="javascript" type="text/javascript">
    if (_self!=top)
      window.location.href="index.asp";  //根据需要修改成你的默认页
    </script>
      

  4.   

    应该是这样,防止被人frame 
    <script language="javascript" type="text/javascript"> 
    <!-- 
    if (top.location != self.location) top.location=self.location; 
    //-->
    </script>
    放在<body>之前
      

  5.   

    由于js跨域,所以windows.top全没用.
      

  6.   

    if (top.location != self.location) top.location=self.location;