wood burning stoves
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
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: 15385
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: 4351

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: parent window form name
It's not a secret anymore!