After navigating through the different tabs of a Horizontal Glider Magic (HGM) system, is there a way to have the Reload and back buttons to go to the last active panel instead of always going to panel #1?
The normal browser Back and Reload button behavior is to restore the page to its initial starting state, however, a tweak can be applied to the Horizontal Glider Magic (HGM) system to have the page display with the last viewed panel as the open or active panel.
1. Open the p7HGMscripts.js file and locate the last three lines of the P7_HGMshowPanel(md,d) function, around line 491:
} return m; }
2. Add a new line directly before the "return m;" line, then copy and paste this:
into the new line so that the code block now looks like this:
} window.location.hash="#hgm"+d.substring(8); return m; }
3. Save the file.
That's it. The system will now append a page anchor to the page address so that the HGM system can re-open to the last opened panel whenever the user goes back to the page. If the user bookmarks the address, the page will also open to the panel that was open at the time they bookmarked the page.