Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Back Button is not working in IE Popup Window

Back Button is not working in IE Popup Window

Scheduled Pinned Locked Moved ASP.NET
question
14 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sam
    wrote on last edited by
    #1

    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 ?

    D A 2 Replies Last reply
    0
    • S sam

      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 ?

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      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:

      S 1 Reply Last reply
      0
      • D Dinesh Mani

        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:

        S Offline
        S Offline
        sam
        wrote on last edited by
        #3

        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.

        D 1 Reply Last reply
        0
        • S sam

          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.

          D Offline
          D Offline
          Dinesh Mani
          wrote on last edited by
          #4

          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.

          S 1 Reply Last reply
          0
          • D Dinesh Mani

            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.

            S Offline
            S Offline
            sam
            wrote on last edited by
            #5

            :sigh: Dinesh there is no such issue i just want to provide Back Button on popup window same as normal window has

            D 1 Reply Last reply
            0
            • S sam

              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 ?

              A Offline
              A Offline
              Abhishek Sur
              wrote on last edited by
              #6

              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

              S 1 Reply Last reply
              0
              • S sam

                :sigh: Dinesh there is no such issue i just want to provide Back Button on popup window same as normal window has

                D Offline
                D Offline
                Dinesh Mani
                wrote on last edited by
                #7

                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.

                S 1 Reply Last reply
                0
                • D Dinesh Mani

                  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.

                  S Offline
                  S Offline
                  sam
                  wrote on last edited by
                  #8

                  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

                  D 1 Reply Last reply
                  0
                  • A Abhishek Sur

                    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

                    S Offline
                    S Offline
                    sam
                    wrote on last edited by
                    #9

                    ya abhishek i have posted it there too because i didn't get any answer here

                    A 1 Reply Last reply
                    0
                    • S sam

                      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

                      D Offline
                      D Offline
                      Dinesh Mani
                      wrote on last edited by
                      #10

                      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?

                      S 1 Reply Last reply
                      0
                      • D Dinesh Mani

                        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?

                        S Offline
                        S Offline
                        sam
                        wrote on last edited by
                        #11

                        i have tried IE6,7and 8

                        1 Reply Last reply
                        0
                        • S sam

                          ya abhishek i have posted it there too because i didn't get any answer here

                          A Offline
                          A Offline
                          Abhishek Sur
                          wrote on last edited by
                          #12

                          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

                          S 1 Reply Last reply
                          0
                          • A Abhishek Sur

                            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

                            S Offline
                            S Offline
                            sam
                            wrote on last edited by
                            #13

                            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.

                            A 1 Reply Last reply
                            0
                            • S sam

                              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.

                              A Offline
                              A Offline
                              Abhishek Sur
                              wrote on last edited by
                              #14

                              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 use location.href dont do it using javascript. Also if you dont want the browser to hold the current page, you need to use history.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 to anchor(<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

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups