Hi,
I want to open a popup window from a submit button but I don't know how to do it.
It needs to be a <input type="submit"> because the form sends information to the popup.
I tried this:
1. Open the popup in the submit button:
<form action="">
<input type="submit" onclick="...">. Doesn't send
the information.
2. Open the popup from a normal button
<input type="button" onclick="..."> The same.
3. <form action="window.open('popup.html',blabla)
Shows an error, I suppose the action must be only
an URL.
Any help?
Thanks.
I want to open a popup window from a submit button but I don't know how to do it.
It needs to be a <input type="submit"> because the form sends information to the popup.
I tried this:
1. Open the popup in the submit button:
<form action="">
<input type="submit" onclick="...">. Doesn't send
the information.
2. Open the popup from a normal button
<input type="button" onclick="..."> The same.
3. <form action="window.open('popup.html',blabla)
Shows an error, I suppose the action must be only
an URL.
Any help?
Thanks.