A mobile website can be customized to allow users to share a pre-filled message in WhatsApp to a manually chosen contact. As given here it is done using Custom URL Scheme. A
To send a Whatsapp message from a website, use the below URL.
URL: https://api.whatsapp.com/send?phone=XXXXX&text=dummy
Here the phone and text are parameters were one of them is required.
This URL is also can be used. It displays a blank screen if there is no application found!
URL: whatsapp://send?text=The text to share!
Note: All the above will work in web, only if WhatsApp desktop app is installed