Advanced Search

Results 1 to 2 of 2

Thread: Browser Sniffer Script (version 1.1). How to redirect users?

  1. #1
    Join Date
    Dec 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Browser Sniffer Script (version 1.1). How to redirect users?

    1) Script Title: Browser Sniffer Script (version 1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...sersniffer.htm

    3) Describe problem: How can I get it so that if the user is using any of those browsers, it redirects to index_1.htm but if they are using a different browser than the ones in the script, it redirects to index_2.htm ?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,681
    Thanks
    43
    Thanked 3,128 Times in 3,094 Posts
    Blog Entries
    12

    Default

    Code:
    if (!exclude)
    window.location.href='index_1.htm';
    else
    window.location.href='index_2.htm';
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •