call server action from JavaScript

call server action from JavaScript

  

Hi,

I want to redirect to login page on session timeout.

I have a java script timer, from there i am going to trigger log out server action.

How to call server action from JavaScript.


Solution

Hi All,

Thanks i figured it out. Its working as expected. 

$('#"+LogoutDiv.Id+"').click();




Solution