View Full Version : Submitting forms to different window

08-05-2002, 06:55 AM
Scenerio :

I have a document which contains a frameset with two frames. In the top frame, I'm poping open a new window with a form in it. I want that form to submit it's contents to the window/frame that opened the new window. I have tried to target the frame to "JavaScript:window.opener", but that just opens a new window. I think this is possible (I've seen forms in new windows post to the opener, but never to a frame in the opener).

08-05-2002, 08:25 AM
in your pop up page:
<form .... target="NameOfFrameHere">

08-05-2002, 08:30 AM
Well I'll be damned. Here I am trying to use all this fancy JavaScript to do it, and plain ole HTML does the trick. I never even thought to try it since the form was in a spawned window of the frameset. Thanks dude, worked like a charm.