单击window.history.back()时要做一些事情

发布于 2025-01-31 08:57:57 字数 437 浏览 4 评论 0原文

当用户单击 window.hostory.back()上时,我想做一些事情。 有这样的东西吗? 感谢您的帮助!

像:

$(document).on('click', window.history.back(), function () {//guest what?})

Update

在屏幕上您有链接:

<a class="Active" href="whatEver">

此脚本:

$(document).on("click", ".Active", ShowModal);

当我返回上一页时(单击浏览器箭头)再次显示模型,并且不会消失。该怎么隐藏它?

i want to do something when the user click on window.hostory.back()
Is there such a thing?
Would appreciate help!

like:

$(document).on('click', window.history.back(), function () {//guest what?})

update

in the screen u have link:

<a class="Active" href="whatEver">

and this script:

$(document).on("click", ".Active", ShowModal);

When I return to the previous page, (click on the browser arrow) the model is displayed again and does not disappear. What to do to hide it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文