当用户在浏览器中单击后退按钮时如何获取上一个URL

当用户在浏览器中单击后退按钮时如何获取上一个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.