How to keep tab active in HTML?
Answer: Use the HTML5 localStorage Object
However, you can use the HTML5 localStorage object to save some parameter for the current tab locally in the browser and get it back to make the last active tab selected on page reload.