I have a web page with three tabs, and depending on which tab is clicked, the corresponding content is displayed. This show / hide content when clicking tabs is handled by Javascript.
My problem is that if I look at the third tab and refresh the page, the page does not refresh before the contents of the third tab are visible, but instead returns to the contents of the first tab.
Is there a way, when javascript is executing, for me to add a GET parameter to the URL, so when loading the page my PHP script can check the GET parameter and display the correct content?
source
share