View Full Version : window.opener as target for a form

06-01-2004, 09:41 AM
Hy everyone!

I am a newbie to Javascript and I have a little problem.

With a link, I open a popup window containing a form.
I want that this form has as target the window.opener in order to not open a new page every time i submit the form. :confused:

I search in the forum and i don't find anything.

Anyone can help me?

Thanks :D

06-01-2004, 10:43 AM
in main page:
<script type="text/javascript">

in popup:
<form target="mywindow" ...>
<form onsubmit="this.target=opener.name" ...>

06-01-2004, 10:46 AM
I love you :o

Thanks :thumbsup: :D

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum