---
title: "窗口重叠问题"
author: "gdntx"
date: "2009-08-05T13:00:04Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2009-08-05T13:00:04Z"
id: 440646
url: "https://gdntx.iteye.com/blog/440646"
---

![](/upload/attachment/132448/fe4cedd0-5e4c-3892-aef4-031652a13450.jpg)

1、上图中的两个窗口应该只有一个。

      如下代码可以让右边的窗体覆盖左边的窗体

```
<script>
	if (top.location != self.location){
			top.location=self.location;
		}

	</script>
```