$('#answer-example-share-button').on('click', () => { if (navigator.share) { navigator.share({ title: 'Web Share API Draft', text: 'Take a look at this spec!', url: 'https://wicg.github.io/web-share/#share-method', }) .then(() => console.log('Successful share')) .catch((error) => console.log('Error sharing', error)); } else { console.log('Share not supported on this browser, do it the old way.'); } });
top of page
trees1_edited.jpg
THE HAUNTING LODGE LOGO.png
  • Instagram
  • Facebook
  • Twitter
  • YouTube
bottom of page