---
title: "frameset跳转"
author: "天边一朵雲"
date: "2011-09-06T10:34:00Z"
tags: []
slug: "frameset"
draft: false
lastmod: "2012-12-24T09:06:37Z"
id: 1752817
url: "https://itexpress.iteye.com/blog/1752817"
---

例frameset为：

```
<frameset framespacing="0" border="false" frameborder="0" cols="150,*">
	<frame name="leftPage" src="leftPage.htm" frameborder="0" marginwidth="0" marginheight="0" framespacing="0" scrolling="no"   noresize>
	<frame name="contentPage" src="contentPage.htm" frameborder="0" marginwidth="0" marginheight="0" framespacing="0" scrolling="no" noresize>
</frameset>
```

frameset包含的页面中head部分（如leftPage.htm）加入

```
<base target='contentPage'>
```

这样在页面框架中点击leftPage的连接默认跳转到name为contentPage的位置。