|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I have this problem with netscape & the following code: <form action='bestel.php3' method='get' Onsubmit='sluit()' target='main'> The function sluit() just closes the current browserwindow. What I want (and what IE does) is that bestel.php3 gets executed and the current browserwindow closes. The above code works in IE, but not in Netscape. Does anybody know a workaround or a fix for this?? Tia, Dirk |
|
#2
|
|||
|
|||
|
Why not just use Onsubmit='window.close()' ?
Also, Netscape is a little picky about case; maybe older versions need to see onSubmit instead of Onsubmit. |
|
#3
|
|||
|
|||
|
Hi all!
I have the same problem as dirk, but the answer given doesn't solve my problem. The onsubmit event works in both browsers, but in IE the submit is made before the event is triggered (so the code works as expected), and in NN the onsubmit event is triggered before the submit occurs. If you know the solution, please reply. ------------------ Best Regards, Monica Machado. |
|
#4
|
|||
|
|||
|
I'm not sure if I got what you want to do, but it sounds like the same thing I had too deal with: when someone submits a form you want to call a function before the form is submitted.
so here's what i did: -> first the submit-button: <input type="button" name="Submit" value="whatever" onClick="myFunction()"> so the button doesn't actually submit the form, it just calls a function. -> second the function: function myFunction() { myOtherFunction ; document.myForm.submit() ; window.close() } so this function calls another function and then submits your form and finally closes the window. does this solve your problem? [This message has been edited by RedFox (edited October 09, 2000).] |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Different form behavior in Netscape and IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|