Bookmarking feature for HTML package

I have created a HTML published package from Lectora Inspire. I need to have bookmarking feature for the course i.e. on revisiting the course user should get a message for return to the slide he last viewed or to initiate the course from beginning.

I am not able to achieve this feature for HTML package where as we do have an option for this while publishing for SCORM.

I have also tried with storing the path(location.href) in a variable and on onload passing to that path, but this functionality works to some extent only. It some times shows the last visited page while some times redirect to the main screen.

Please any one has the quick solution for this then please do let me know.