---
title: "不被frame包住"
author: "xiangsheng"
date: "2011-11-29T10:01:03Z"
tags: []
categories: ["Web前端"]
slug: "frame"
draft: false
lastmod: "2011-11-29T10:01:03Z"
id: 1283141
url: "https://xiangsheng.iteye.com/blog/1283141"
---

```java
if(parent!=window){
	  top.location=window.location;
}
```