All articles tagged as: javascript

International number formatting on the web with JavaScript

In the UK numbers are typically shown as follows; 07700 900 123 020 7946 0123 This is known as the "local" or "UK National" format When dialled from abroad, the leading 0 is replaced with +44 so the 07700 number in the above example would become +44 7700 900 123 Unfortunately, there isn't really an acceptable way of writing this for both audiences. Numbers for an international audience Most commonly (and the one form I generally accept) is placing the 0 within a bracket e.g. +44 (0)20 7946 0123 – however even this is met with some objections as brackets were traditionally used for the S…

Read more »