SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question a js / jQuery script that redirects based on browser

    Hello,
    I am encountering some serious issues with the inability to not style html elements in firefox and opera.
    More of my issues is describe in the this post that I posted as a new thread in the css forum.

    But, I was wondering that if I can not find an html/css hack could someone here help me write a script that redirects a viewer to a separate page or directory if they are using firefox or Opera.

    This is in completely pseudo-code, but something like this:
    if(browser.equals("firefox"))
    {
    sendUserTo("http://mysite.com/html4/index.html");
    }

    I would really appreciate it if someone can help me write this script.

    Please reply or contact me with any questions, comments, concerns, or solutions

    Thanks in Advance and Best Regards,
    Team 1504.

  2. #2
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    776
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    I see Paul replied to you in the CSS forums already.

    Hi suggestion should do the trick
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }

  3. #3
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the help though.

    Regards,
    Team 1504


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •