wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes parent window form name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "parent window form name" Watch "parent window form name" New topic

parent window form name

smitha rai
Ranch Hand

Joined: Aug 15, 2001
Posts: 33
Aprreciate if some one help me out with the javascript to get the parent form name into the child window.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Is the parent form name known?? Is it generated?

basic idea can be something like this if known:
var PForm = opener.document.FormName;
smitha rai
Ranch Hand

Joined: Aug 15, 2001
Posts: 33
The parent window's form name is known. I want to retreive its name while I am in child window.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340

I hate to say this but, your name does not comply with the Javaranch naming guidelines which can be found at http://www.javaranch.com/name.jsp
please register again with a valid name.

Visit my download page
Garann Means
Ranch Hand

Joined: Jan 28, 2002
Posts: 214
Originally posted by Al Ian:

var PForm = opener.document.FormName;

I'm pretty sure this will give you the form object, not the name. My preference would be this:

Assuming you've only got the one form in the parent window.
wood burning stoves
subject: parent window form name
Similar Threads
Problem with popup window.
Popup Window from JSP
data from Child window to parent window
refresh parent window from child window
Popup Window from JSP