Jump to content

setting form target to opener window


chadmichael

Recommended Posts

Hello.I have a form in a secondary window. When the form submits, I want the window to close and the form targe to be the original opening window. The target property of the form takes a string. I tried to use the opener.name but it doesn't seem to work. Are there some tricks or quirks to this.Chad

Link to comment
Share on other sites

opener.name is the name of the window not the url of the window.

I know that opener.name is the name, not url. But the form.target is supposed to be set to a string that is the name of the target window or frame. What I thought would work would be one of the default names such as "_parent", but apparently this applies to the parent frame. Is there such a default name for the opener of a new window?

try opener.location or opener.window.locationDo you mean to set the opener.location = myURL? I think I understand this, but how do I submit my form at the same time?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...