[Javascript] new window on submit

Rodney Myers rodney at aflyingstart.net
Thu Aug 8 04:03:44 CDT 2002


Try this.

onSubmit in form tag calls code which opens a named (newWindow) popup window to
your specification.
That spec might include suppressing the URL window so any get query string is
not visible.

Also in the form tag  TARGET="newWindow" and METHOD="get"

Then when you submit the form it will use the window called newWindow

hth

Rodney


sebastian wrote:

> Hi.
>
> I have a form with username and password calling a main.asp page.
> I wont that main.asp opens in a new window.
>
> One solution could be:
>
> <form name ="something">
> ..
> <input type="button" value="POTRDITEV" name="potrditev"
> onclick="NewWindow('main.asp?username=test&password=test','okno','760','465'
> ,'yes');return false;" >
> ..
> </form>
>
> but calling the next page with " main.asp?username=test&password=test "
> shows parameters username an password in the client's Address.
>
> Instead I tried to use post method, but the parameters doesnt pass.
>
> How can I achive this?
>
> Thanks, Sebastian
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list