Back Button is not working in IE Popup Window
-
-
Hi! I created a page that has a "Back Button", it opens up as a pop up window. The Back Button doesn't work IE but id does in FireFox Mozilla. I have tried with window.history.go and window.history.back but non of them is working. Any Suggestion please ?
What is the error that you get in IE? Check if Pop up is blocked in IE. BTW, I'm just curious here, why do you want to show a page from the history in a new window?:confused:
-
What is the error that you get in IE? Check if Pop up is blocked in IE. BTW, I'm just curious here, why do you want to show a page from the history in a new window?:confused:
-
Dinesh ! there is no problem with popup blocker. I want to give a back button functionality on popup window same as normal browser window provides.
I'm sorry, I got it the otherway around! Do you get any specific error message on IE? What is the server response? Might sound silly, but check if there are pages in history. Might be there is nothing in history when u tried from IE.
-
I'm sorry, I got it the otherway around! Do you get any specific error message on IE? What is the server response? Might sound silly, but check if there are pages in history. Might be there is nothing in history when u tried from IE.
-
Hi! I created a page that has a "Back Button", it opens up as a pop up window. The Back Button doesn't work IE but id does in FireFox Mozilla. I have tried with window.history.go and window.history.back but non of them is working. Any Suggestion please ?
Its a cross post : http://www.codeproject.com/answers/45846/Back-Button-On-IE-Popup-doesnt-Work.aspx[^]
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
:sigh: Dinesh there is no such issue i just want to provide Back Button on popup window same as normal window has
The point is that the history maintenance is dependent on the browser. As far as I know, IE only maintains the history from the moment the pop-up window is opened. So, say if you opened your site on the main window and assume this is your page flow [Main Window] Page1 > Page2 > Page3 > Page4 > [Pop-up] Page5 > Page6 Now from the pop-up you can go back only till Page5. Page1-4 are not accessible from the pop-up. I think FireFox maintains history differently.
-
The point is that the history maintenance is dependent on the browser. As far as I know, IE only maintains the history from the moment the pop-up window is opened. So, say if you opened your site on the main window and assume this is your page flow [Main Window] Page1 > Page2 > Page3 > Page4 > [Pop-up] Page5 > Page6 Now from the pop-up you can go back only till Page5. Page1-4 are not accessible from the pop-up. I think FireFox maintains history differently.
-
Its a cross post : http://www.codeproject.com/answers/45846/Back-Button-On-IE-Popup-doesnt-Work.aspx[^]
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
My application doesn;t have any concern with Page1-4. the concern is if i m on Pag6 and i click Back button the window should take me to the Page5 . which is not happening
mm, that's interesting! I've never tried putting a back button on a pop-up, so I can't say why it is not happening. BTW, which version of IE r u using? did u try older/newer versions, other machines?
-
mm, that's interesting! I've never tried putting a back button on a pop-up, so I can't say why it is not happening. BTW, which version of IE r u using? did u try older/newer versions, other machines?
-
Can you tell me, are you opening every page in a new window ?
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
Can you tell me, are you opening every page in a new window ?
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascriptthe scenario is like this. i have a like on a page that opens up a popup window with another link when i click on that link another page opens in the same popup window with a back button. when i m clicking on back button it doesn't take me to the previous page. (Normal Window)Page1->(PopupWindow)Page2->Page3(with Back Button). Now when i m clicking on the back button present on Page3 it doesn't take me to the Page2. I have checked the window.history.length it comes zero.
-
the scenario is like this. i have a like on a page that opens up a popup window with another link when i click on that link another page opens in the same popup window with a back button. when i m clicking on back button it doesn't take me to the previous page. (Normal Window)Page1->(PopupWindow)Page2->Page3(with Back Button). Now when i m clicking on the back button present on Page3 it doesn't take me to the Page2. I have checked the window.history.length it comes zero.
sam# wrote:
I have checked the window.history.length it comes zero.
Actually there is no way to add anything in browser cache. Even if you do, it will not work. Actually it automatically puts to browser history each page when navigates. To put in browser history, always use
<a href="">
or uselocation.href
dont do it using javascript. Also if you dont want the browser to hold the current page, you need to usehistory.replace
with the same url so that it replaces the current page with the one in history. In your case, just change the control which navigates to the 2nd page toanchor(<a>)
and I think it will start working.Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript