---
title: "prototype window返回值给母窗体"
author: "bigelf"
date: "2008-09-23T08:29:18Z"
tags: []
categories: ["Web前端"]
slug: "prototype-window"
draft: false
lastmod: "2009-05-30T13:39:13Z"
id: 245709
url: "https://bigelf.iteye.com/blog/245709"
---

在牛人帮助的情况下终于搞定的

prototype window是iframe实现的

win = new Window(<span style="color:red">'popup'</span>,{className: "alphacube", width:900, height:500, top:70, left:100,
url:"popup.jsp"});

这里window的id是<span style="color:red">'popup'</span>，实际弹出子页面的iframe为 <span style="color:red">'popup_content'</span>

在closeCallback方法中直接使用window.frames.document.getElementById("abc").value取值