quote:
Originally posted by Poki
code:
function OnEvent_ContactSignin("somemail@hotmail.com")
{
}
Function parameters aren't meant to work that way. A parameter is to retrieve information from the function call, and then process it. What you want is to check
if the email matches a certain e-mail address.
Therefore, you need this code:
code:
function OnEvent_ContactSignin(Email) {
if(Email == "someone@hotmail.com") {
//Do your thing here
}
}
More information about declaring correct functions in JavaScript