If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Browser Detection and functioning - Error in code. HELP

Hi there,

I need someone to check my JavaScripting Code for me. It's being used in html and I use Dreamweaver to edit it. Coding Background:
This code is supposed to determine which browser a user is using, and with that then determined, it should run BrowserType1() or BrowserType2(), hereon spoken of as fnA() or fnB(). Those functions have different html titles, therefore it should work seamlessly. The issue comes in at Ln. 317. For some reason, it doesn't want to accept my else if... code.

Even if I use == or ===, it gives me a debugging error. I've tried literally e-v-e-r-y-t-h-i-n-g, and I can't find the problem with it to actually know what solution to use there. It's like it doesn't accept 'else if...' statements even though it does

Even if I use == or ===, it gives me a debugging error. I've tried literally e-v-e-r-y-t-h-i-n-g, and I can't find the problem with it to actually know what solution to use there. It's like it doesn't accept 'else if...' statements even though it does

Then there must be a syntax error. All you have to do is find it and fix it.

Where used, return should be executed unconditionally and always as the last statement in the function.

Your help is greatly appreciated! Code is working (almost) fine now. Now, there's a new problem. You know fnA and fnB (mentioned in initial post) as defined in the code and used in the if-statements - Those are used to set a multi-title for the webpage. Calling up the functions in the if...else if...else... statements, they render as static text, and not as per scripted at the definition of the functions. If you don't understand what I just said, just run each function separately and you'll know what I'm talking about. Any solutions?