如何回到历史页面 [英] how to go back on history page

查看:107
本文介绍了如何回到历史页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

请查看http://www.mobilerechargeapi.com/gmail/emr/





如果我点击手机然后只有移动div内容显示



如果我点击DTH然后只有DTH div内容显示



如果我点击数据卡然后只有数据卡div内容显示





但是当我点击浏览器上的后退按钮然后url得到更改但不满足。







请告诉怎么能i ??

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??

推荐答案

您好,



该网站使用JavaScript处理程序在标签之间切换。例如,名为datacard的选项卡是一个超链接,其onClick处理程序设置为位于Script.js中的mobile(3)。超链接的href设置为相应div的id,需要通过超链接的onClick处理程序显示。



因为点击选项卡也会更改URL,无论如何简单导航到同一页面内的书签和处理程序都会取消相应的。实际上没有页面刷新。



问候,
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,


这篇关于如何回到历史页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆