I hope I can get some help here,
Basically what I want to do, is to have my form to be submitted to a popup,
no problem there,
the problem is,
I want to initiate this from a button that is pressed on Another form, but no matter what I get it to open on another page not the popup.
something like :
Expand|Select|Wrap|Line Numbers
- function popup(){
- window.open("", "newwin", "width=750,height=600,scrollbars=yes,resizable=yes");
- document.2ndform.submit();
- }
- <from name="1stform">
- <input value ="button" type="button" onclick="popup()">
- </form>
- <form name="2ndform" method="POST" action="xxx" target="newwin" onsubmit="window.open("", "newwin", "width=750,height=600,scrollbars=yes,resizable=yes")">
- </form>