`

跳出框架在、在父级页面显示 js

 
阅读更多

当页面显示在了框架里(frame)、想让它显示在整个浏览器上、在jsp中添加一段javascript代码

<script type="text/javascript">

   if(window.parent!=window){

   

      window.parent.location.href=window.location.href

 

  }

 

 

</script>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics