wasap.js • Demos

Demo area • Mobile-only
Click and write the first message!


<span data-whatsapp="5215585420898">Click and write the first message!</span>
  elementCallback: function(el, wasap_send){
    el.addEventListener('click', function(e){
      var prompt_message = prompt('Say hello!', 'Hello from wasap.js');
      if(!prompt_message) return;
      wasap_send({ text: prompt_message });

More demos

  1. Basic
  2. Predefined message
  3. Enable on all platforms
  4. Multiple elements
  5. Prompt for a message
  6. Change destination number on the fly
  7. Advanced demo