---
title: "模态窗口页面取母页面对象"
author: "beiqi"
date: "2014-12-06T00:10:51Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2014-12-06T00:10:51Z"
id: 2163663
url: "https://beiqi.iteye.com/blog/2163663"
---

例如：

取母页面输入框id为 name的值：parent.$("#name").val();

取母页面js定义的变量name：parent.name