Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi
pls check http://www.mobilerechargeapi.com/gmail/emr/


if i click on mobile then only mobile div content show

if i click on DTH then only DTH div content show

if i click on Data Card then only Data Card div content show


but when i click on back button on browser then url get change but not content.



Pls tell how can i??
Posted

1 solution

Hello,

The site is using JavaScript handlers for switching between the tabs. For example the tab named datacard is a hyperlink with onClick handler set to mobile(3) located in Script.js. The hyperlink's href is set to an id of the corresponding div which needs to get shown by the onClick handler of the hyperlink.

Because of this clicking on the tab also changes the URL, which any way a simple navigation to a bookmark within the same page and the handler unhides the corresponding. No page refresh is really happening.

regards,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900