简体   繁体   English

如何获取JavaScript的浏览器导航器(后退和前进按钮)按钮处理(如jquery)

[英]how to get browser navigator (back and forward button) button handling for javascript (like jquery)

i need get browser navigator handling example. 我需要获取浏览器导航器处理示例。 i'm using example: imagine for many tab opener. 我正在使用示例:想象很多标签开瓶器。

  1. open new tab and switch to main tab opener page and create new tab. 打开新标签页并切换到主标签页打开器页面并创建新标签页。
  2. close first opened tab. 关闭第一个打开的标签。
  3. click browser navigator back button. 单击浏览器导航器的后退按钮。 focus last tab. 聚焦最后一个标签。 re click back , focus main tab opener , re click back stay main tab and history back disable. 重新单击后退,聚焦主选项卡打开器,重新单击后退保留主选项卡,并禁用历史记录。 because i closed first tab. 因为我关闭了第一个标签。 imagine many probability. 想象很多可能性。 for exam: i have 6 tabs and i closed 4th tab. 考试:我有6个标签,我关闭了第4个标签。 and back or forward and pass to tab 4 if forward button clicked then go tab 5 if press back focus tab 3. 前进或后退,如果单击前进按钮,则转到选项卡4;如果按后退焦点,则转到选项卡5。

Thanks in advance 提前致谢

这是另一个可能有用的jQuery插件: http : //benalman.com/projects/jquery-bbq-plugin/

jQuery Address jQuery地址

Look at the example here . 这里的例子。

It works with tabs and the back and forward buttons. 它与选项卡以及后退和前进按钮一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM