This is my code to reset a user\'s password incase the user forgets his password. The data is sent to the PHP code via AJAX requests and the PHP code simply echoes a \"Y\" o
You have to use an event object for the parameter of the event handler, chrome and safari has a global event object called event when an event is triggered but firefox does not. So event.preventDefault(); will cause an error.