Results 1 to 3 of 3
Dec 27, 2012, 07:44 #1
- Join Date
- May 2010
- 0 Post(s)
- 0 Thread(s)
JS 'heyoffline' check for event and then redirect if online
I'm using the 'heyoffline' script (https://github.com/oskarkrawczyk/heyoffline.js) to determine whether users have an active internet connection, and if not, show a notification.
What I want to do is onload, check if they are online, and if so, redirect to another page, but if offline, load as normal. I'm not sure how to code this.
I want to accomplish this:
If onOnline = true, then redirect, otherwise just load page as normal.
Any help would be great.