Hi All,
I have the function as
window.onbeforeunload = alertChanges;
and I only want to execute this only if the session is not time out. So if the session is time out I want to skip this call.
Any idea? Thanks in advance,
KP

if(${session} != null){
    method....
} else {
    method....
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.