[Javascript] new window on submit

sebastian sebastian.lahajnar at pris-inz.si
Thu Aug 8 02:53:28 CDT 2002


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




More information about the Javascript mailing list