Skip to content Skip to sidebar Skip to footer

'object Is Not A Function' - Onclick Event

Before I start, no I have no issues that I can find with semicolons, and I'm passing NO values to the function. When I try to do function 'login()' from the console, it works just

Solution 1:

It turns out that the function name "login" was both a reference to the form and function.

I changed "login()" to "loginUser()", and typed "login" into the console, and the form was returned, so they were indeed conflicting with each other.

Thank you again for all the help and special thanks to Marc for the true answer.

Post a Comment for "'object Is Not A Function' - Onclick Event"