A
A
Alexander Stepanov2019-10-28 17:03:24
iPhone
Alexander Stepanov, 2019-10-28 17:03:24

How to call the context menu like in browsers?

Good afternoon!

How do I call the context menu (share widget) - a standard widget from an iPhone or chrome.
In general, I don’t quite understand how I can call a standard function from the device when clicking on a link using jquery.

I hope I explained clearly.

Sincerely, Alexander.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rustam Bainazarov, 2019-10-28
@zloycoder

Only works in fairly new browsers:
https://developer.mozilla.org/en-US/docs/Web/API/N...

navigator.share({
    title: 'Дратути!', // Заголовок
    text: 'Здарова, бандиты!', // Текст
    url: 'https://bandits.org', // ссылка
  });

Current link and title:
Your parameters:
Using data attributes as an example:
~ ~ ~
All this calls up this menu:
And sends it quite well, for example, to Telegram:
5da51132ed1bb810581709.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question