Skip to content

Javascript; Browser Detection and Page Redirection

A recent project was developed utilizing Internet Traveler 5.5 as the
browser of selection. Knowledgeable about internet browser conflicts, Visitor Posting checking out the
web page making use of 3 other commonly utilized browsers, Internet
Explorer 4.0, Netscape Navigator 6.1, as well as Netscape Navigator 4.7
revealed some ‘distortions’. This was mainly due to whether
a certain browser might translate style sheets, as well as if so just how the
design sheets were interpreted.

It appeared that the web page code either needed to be downgraded
to the ‘cheapest usual denominator’ or alternative variations of the
website were required for Netscape 6.1, Netscape 4.7, and also
Internet Explorer 4.0. Therefore, a variation maximized for Netscape
6.1 was produced, in browser problem addition to an additional variation compatible for both
Netscape 4.7 as well as Internet Traveler 4.0. (This was prior to Internet
Explorer 6.0 as well as Netscape 6.2 were readily available.).

Testimonial of a number of existing website and books on Javascript.
provided different strategies to composing manuscript to first identify a.
customer’s web browser, and afterwards depending on the internet browser and variation,.
to reroute the individual to a certain page. In this certain case, none.
of the recommendations or solutions were what was required. After.
a bargain of screening and also re-testing, the following manuscript examples.
were constructed.

Below are five different examples/ variations of some Javascript.
that is to be placed on a page that is enhanced for Net Explorer.
5.5. These manuscripts will then immediately identify the site visitor’s browser.
as well as variation, and afterwards immediately guide the particular browser in.
one of three instructions. They are;.

If a visitor is utilizing Net Explorer 5.5, to remain on the present page.

If a site visitor is using Netscape 6.1, to be redirected to a page that has.
been maximized for Netscape 6.1.

Published inBusiness