Agum
New Member
Hi all,
I have a quick question/problem.
So I have a login form. Here's my JS:
Event.observe(window, 'load', init, false);
function init()
{
Event.observe('loginForm', 'submit', loginAction);
}
function loginAction(event)
{
Event.stop(event);
// do other stuff
}
This doesn't work in IE.
It works fine in Firefox, stopping the form from submitting at that time, and run rest of the function. In IE, the form just submits. How can I fix this?
Thanks.
I have a quick question/problem.
So I have a login form. Here's my JS:
Event.observe(window, 'load', init, false);
function init()
{
Event.observe('loginForm', 'submit', loginAction);
}
function loginAction(event)
{
Event.stop(event);
// do other stuff
}
This doesn't work in IE.
It works fine in Firefox, stopping the form from submitting at that time, and run rest of the function. In IE, the form just submits. How can I fix this?
Thanks.