控制浏览器后退按钮的行为 [英] Controlling the behavior of the Browsers Back Button

查看:96
本文介绍了控制浏览器后退按钮的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们创建了一个电子通讯的客户端,其中包括大量的故事的链接以及横幅补充道。在广大用户的阅读在MS Outlook通讯。客户认为当他们点击从通讯中的链接,并在他们的浏览器中打开,然后才能返回到通讯用户无法点击浏览器的返回按钮的用户将感到困惑。

We created an E-Newsletter for a client that includes lots of story links as well as banner adds. The majority of users are reading the newsletter in MS Outlook. The client thinks users will get confused when they click on a link from the newsletter and it opens in their browser and then the user can't hit the browser's back button in order to get back to the newsletter.

我有什么选择?
是否有可能来控制浏览器回按钮将用户?我不会猜测出于安全原因。

What are my options? Is it possible to control where the Browsers back button takes the user? I would guess not for security reasons.

如果我有通讯联系通过我们的主网站,然后重定向到所需的网页(故事或广告),我可以做在这样一种方式,后退按钮将工作,不会导致用户被重定向到重定向页面?

If I have the newsletter links go through our main site and then redirect to the desired page (story or ad), can I do it in such a way that the back button will work and won't result in the user being redirected back to the redirect page?

有没有更好的方法吗?

推荐答案

总体而言,前进和后退按钮经过历史步用户和出于安全考虑,很少有你可以做的。的 ...

Overall, the back and forward buttons step the user through the history and for security reasons, there is very little you can do about that. But ...

您确实有一定量超历史的控制。特别是,第1页可以说去第2页,一旦用户是第2页上,后退按钮将用户返回到第1页页1可以说代替我的历史与第2页;那么一旦用户是第2页上,后退按钮将返回前的无论是的用户第1页,如果有的话。这是奥威尔重定向页面右侧的内存不足的好办法。

You do have a certain amount of control over the history. In particular, page 1 can say "go to page 2", and once the user is on page 2, the back button will return the user to page 1 OR page 1 can say "replace me in history with page 2"; then once the user is on page 2, the back button will return the user whatever was before page 1, if anything. This is a good way to Orwell redirect pages right out of memory.

请参阅here了解详情。

这篇关于控制浏览器后退按钮的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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