How to show an facebook like button when offline so that when he click redirected to login page
<p>I have a like button in my html page when online.</p>

<p>but i also want like button to show up when i m offline and when i click on it redirect me to the login page which shows user that he does not have an internet connection</p>

<p>Help me... thanks in advance</p>
