Call to a JS function
alertStatement()
Function Definition
function alertStatement(link) {
if (link) {
alert('A');
}
if (link!=null) {
alert('B');
}
}
Both of these statements are working fine in Windows Env with Tomcat, but none of them execute it on production (Linux server). Is there any other way to compare variables to make it working?
I got it working using the following javascript code.
function alertStatement(link) {
if (link!==undefined){
alert('A');
}
}
So at last undefined worked for me , for some reason null comparison didn't work