ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

onsubmit doesn't work in IE

(1/1)

mediaguycouk:
Hi all,
I'm getting confused by a problem. Everything works fine in Firefox, but in IE I can't get a form to submit correctly with the enter key.

I have this function


--- Code: Javascript ---function enter(){        if (step == 7)        {                return true;        }        else        {                next();                return false;        }}
and this line of code


--- Code: HTML ---<form id="form" name="form" method="post" action="upload.php" onsubmit="return enter();">
But enter() never seems to load until you get to a real submit button. I've put the entire code here - http://www.unics.co.uk/onsubmit/

Does anyone know what might be the issue?

Renegade:
This might help:

http://www.webxpertz.net/forums/showthread.php?p=191220

Not sure. I've not tried it though.

Navigation

[0] Message Index

Go to full version