当用户在浏览器中单击后退按钮时如何获取上一个URL [英] how to get the previous url when user click on back button in browser

查看:156
本文介绍了当用户在浏览器中单击后退按钮时如何获取上一个URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用asp.net。我有一个主菜单。我所做的是,在Home / About页面中,当用户点击菜单时,我用菜单中选择的所选页面内容替换了关于页面内容。

I am using asp.net. I have a main menu. what I have done is,in the Home/About page,when user click on the menu I replacing the About page content by selected page content selected in the menu.

$("#content").html(iframeof selected menu url);



此处,内容位于关于页面。我的问题是当我点击浏览器后退按钮时,它会重定向到登录页面,而不是重定向到之前选择的页面。



如何显示以前的用户单击浏览器后退按钮时的页面。


here,content is in About page . My problem is when I click on browser back button,It is redirecting to the log in page,not redirecting to the previous selected page.

how can I display the previous page when user click on the browser back button.

推荐答案

#content)。html(iframeof selected menu url);
("#content").html(iframeof selected menu url);



here, content 在关于页面。我的问题是当我点击浏览器后退按钮时,它会重定向到登录页面,而不是重定向到之前选择的页面。



如何显示以前的用户单击浏览器后退按钮时的页面。


here,content is in About page . My problem is when I click on browser back button,It is redirecting to the log in page,not redirecting to the previous selected page.

how can I display the previous page when user click on the browser back button.


这篇关于当用户在浏览器中单击后退按钮时如何获取上一个URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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