Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

How can I use Javascript code to fool a website into thinking Mozilla is

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
Deja Q Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Jun-06-04 12:15 PM
Original message
How can I use Javascript code to fool a website into thinking Mozilla is
Internet Explorer 4?

I've been beating my head against a wall for an hour and I'm stumped. Can anyone provide a basic solution as to how to detect the Mozilla browser? (I've code which redirects to specific browsers but I want to assign the generic is_IE4 variable to Mozilla...

Thanks!
Printer Friendly | Permalink |  | Top
Madrone Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Jun-06-04 12:22 PM
Response to Original message
1. try the prefbar -
Edited on Sun Jun-06-04 12:23 PM by PROUD DemocRAT
http://extensionroom.mozdev.org/more-info/prefbar


you will be able to use it to toggle between a number of different browsers - mozilla will "report" itself as whatever you choose.


ON EDIT - nevermind. I misread you the first time. You're talking about the coding of the SITE, and how the site reacts, not the browser. Sorry!
Printer Friendly | Permalink |  | Top
 
salvorhardin Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Jun-06-04 12:44 PM
Response to Original message
2. There's an extension to do it
Try the User Agent Switcher. That should do what you want. :-)

http://extensionroom.mozdev.org/more-info/useragentswitcher
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Jun-06-04 01:05 PM
Response to Original message
3. I don't understand why you're stuck
if == mozilla then set IE_4 :shrug:
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Wed Apr 24th 2024, 03:24 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC