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. javascript for url redirection

javascript for url redirection

Scheduled Pinned Locked Moved Web Development
javascripthtmlquestion
9 Posts 4 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.
  • N Offline
    N Offline
    Nikhil Bhivgade
    wrote on last edited by
    #1

    i want to know if i some user open's a webpage in IE6 Page1.html should be displayed and if user open's a webpage in Page2.html should be displayed how can i achieve this kind of display

    G 1 Reply Last reply
    0
    • N Nikhil Bhivgade

      i want to know if i some user open's a webpage in IE6 Page1.html should be displayed and if user open's a webpage in Page2.html should be displayed how can i achieve this kind of display

      G Offline
      G Offline
      Goutam Patra
      wrote on last edited by
      #2

      Do you really think your question is clear?

      N 1 Reply Last reply
      0
      • G Goutam Patra

        Do you really think your question is clear?

        N Offline
        N Offline
        NeverHeardOfMe
        wrote on last edited by
        #3

        It isn't - but I assume he wants a JS function to redirect users to an appropriate page depending on what browser they are using - specifically on their version of IE... ... my answer to the OP would be: don't bother. Anyone still using IE6 gets what they deserve. Upgrades (or alternatives) are easy, and free, and really, IE6 is long past it's sell by date. It's dead now.

        G 1 Reply Last reply
        0
        • N NeverHeardOfMe

          It isn't - but I assume he wants a JS function to redirect users to an appropriate page depending on what browser they are using - specifically on their version of IE... ... my answer to the OP would be: don't bother. Anyone still using IE6 gets what they deserve. Upgrades (or alternatives) are easy, and free, and really, IE6 is long past it's sell by date. It's dead now.

          G Offline
          G Offline
          Goutam Patra
          wrote on last edited by
          #4

          If so, then

          <script language="javascript">
          location.href="Newform.aspx";
          location.reload;
          </script>

          function works in IE6 too.

          N 1 Reply Last reply
          0
          • G Goutam Patra

            If so, then

            <script language="javascript">
            location.href="Newform.aspx";
            location.reload;
            </script>

            function works in IE6 too.

            N Offline
            N Offline
            NeverHeardOfMe
            wrote on last edited by
            #5

            That's missing the point - OP wants a (cross-browser) function that will identify the user's browser adn then redirect them accordingly. There are such funcitons out there (Google them...) but of course they are subject to becoming out of date over time. As Is ay, I wouldn't (and don't) bother with it myself.

            G P 2 Replies Last reply
            0
            • N NeverHeardOfMe

              That's missing the point - OP wants a (cross-browser) function that will identify the user's browser adn then redirect them accordingly. There are such funcitons out there (Google them...) but of course they are subject to becoming out of date over time. As Is ay, I wouldn't (and don't) bother with it myself.

              G Offline
              G Offline
              Goutam Patra
              wrote on last edited by
              #6

              OK, I misinterpreted OP.

              1 Reply Last reply
              0
              • N NeverHeardOfMe

                That's missing the point - OP wants a (cross-browser) function that will identify the user's browser adn then redirect them accordingly. There are such funcitons out there (Google them...) but of course they are subject to becoming out of date over time. As Is ay, I wouldn't (and don't) bother with it myself.

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                Wow - you don't deal with corporate inertia much do you? Many companies and government departments are still stuck using IE 6 because of the complexity and costs involved in rolling out new systems.

                I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

                Forgive your enemies - it messes with their heads

                My blog | My articles | MoXAML PowerToys | Onyx

                N 1 Reply Last reply
                0
                • P Pete OHanlon

                  Wow - you don't deal with corporate inertia much do you? Many companies and government departments are still stuck using IE 6 because of the complexity and costs involved in rolling out new systems.

                  I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

                  Forgive your enemies - it messes with their heads

                  My blog | My articles | MoXAML PowerToys | Onyx

                  N Offline
                  N Offline
                  NeverHeardOfMe
                  wrote on last edited by
                  #8

                  No, my clients are all in the private sector. Lucky me... Sorry, but I have no sympathy for anyone still using IE6. How hard is it, even for a government agency, to upgrade from IE6, really? It's just a browser, for FS, not an operating system....

                  P 1 Reply Last reply
                  0
                  • N NeverHeardOfMe

                    No, my clients are all in the private sector. Lucky me... Sorry, but I have no sympathy for anyone still using IE6. How hard is it, even for a government agency, to upgrade from IE6, really? It's just a browser, for FS, not an operating system....

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #9

                    NeverHeardOfMe wrote:

                    Sorry, but I have no sympathy for anyone still using IE6.

                    I have sympathy for the end users - it's the management I have no sympathy for.

                    NeverHeardOfMe wrote:

                    How hard is it, even for a government agency, to upgrade from IE6, really?

                    Considering the amount of paperwork, funding, testing of roll outs, software compatibility testing, it's surprisingly hard. Bear in mind that they may be upgrading 10 to 20,000 instances it's a fairly expensive task.

                    I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

                    Forgive your enemies - it messes with their heads

                    My blog | My articles | MoXAML PowerToys | Onyx

                    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