---
title: "js 父窗口"
author: "xshdch"
date: "2016-07-14T16:42:20Z"
tags: []
categories: ["Web前端"]
slug: "js"
draft: false
lastmod: "2016-07-14T16:42:20Z"
id: 2311265
url: "https://xshdch.iteye.com/blog/2311265"
---

普通的打开窗口方式使用window.opener.document.getElementById("name");取得父页面的值，

打开的是模式窗口用window.parent.document.getElementById("name");去得父页面的值