I am trying to figure out how to go about detecting what browser is being used. Some report the version as being 10.0, 10, 4.6 or 5. How can i just get the whole number without any .x at the end (if it has one to begin with)?
I currently use this:
version = version.substring(0,3);
Which works if its a whole number but not if it has a period in them.
David