Discussion Locked

Need some Browser Code.

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm looking for a line or two of code to place into my Home Page that will do the following:

Recognize a Netscape browser, and divert the client to an alternate page.

With all of the Explorer and FrontPage specific programming in my home page, it looks like hell in a Netscape browser. I want to build a separate page for Netscape viewers.

I have seen such an item at one time or another on a site, but did not keep the code. Can't remember whether it was Javascript, ASP server pages or plan old HTML.

Any ideas

Cheers
George

6 replies

by ds9

Hi Puggieda.------

I incorporated your code into my Home Page (Index.html), but ran into two problems.

The First problem I solved myself, by eliminating all lines to do with Microsoft Explorer. What was happening, was that entering "Index.html" for the destination page, my Home Page, it put the whole thing into an endless loop when the URL is accessed from the Internet.

Now, it works O.K. with Explorer, and, while it accesses the alternate page for Netscape, it does not do it directly.It first accesses the original index.html page briefly, and then blanks the screen and goes to the alternate page for Netscape.??

It appears like the HIDE statement is not working. Maybe you could review your code to check for any typos that may have gotten through.

Cheers,
George

This discussion is closed to new replies.