I have a table with pagination implemented. I would like to save its status after a reload, so it does not start from the first page every time. I have heard about local storage in the browser but do not know how to implement it in my case. As I understand, I need to locally save the number of the actual page and load it for the first page like this: showPage(1); but instead of "1", I need some variable that contains information of the last active page. Can someone help me with this?
// Code snippet for returning an array of maxLength (or less) page numbers...
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<div id="Tabledta"></div>
<div class="pagination"></div>