![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to press a submit button on a form and then a pop-up Window opens to process the form data. I have a form with this HTML code: form action="/test.php" method="post" name="testform" onSubmit="newWindowForm('testform')" And here is the javascript for the top of the page: function newWindowForm(formname) { //alert(formname); var popUp = window.open ('','popUp','scrollbars=no,resizable=no,width=450, height=350'); document.formname.target = 'popUp'; } The problem is this line: document.formname.target = 'popUp'; |
![]() |
| Thread Tools | |
| Display Modes | |
| |