Home

OpenSource | JavaScript

Introduction

Show Best Number is a free JavaScript for displaying the phone number that is closest to the visitor on your website - in a format that is familiar to them.

If you have phone numbers from multiple countries, you can use this library to automatically display the number that is best for the visitor on your website. Gets the visitor's location based on their IP address.

How to use the library

Step 1: Copy the sample num.json from the repository and edit it to include your phone numbers.

Step 2: Copy the code below and paste it into your website. Be sure to update the data-uri to point to the correct location of the num.json file.