I have a login form that includes a username and password field.
Users will be able to login using:
Domain\username
And
Username@domain.org.uk
However many users attempt to login using just ‘username’
I want to help users by adding domain\ or @domain.org.uk to there username when they enter just ‘username’, when they click the login button I want to add the domain part of the username.
How can I do this in pure JavaScript?
On Submit: http://alexking.org/blog/2003/10/01/javascript-onsubmit-handler