Using JavaScript, learn how to implement a feature which gives users the option to easily share selected text, in this case to Twitter but could be any social media or even additional options such as to copy to clipboard or convert selected text-to-speech so that user can listen to it!
The feature of sharing selected text is quite common, especially in Blog sites and it helps websites gain exposure, grow traffic and increase search engine rankings!
In the first few minutes of this video, we build the structure and add the content and styling with HTML and CSS. After deciding which areas of our page should allow for sharing selected text, we proceed to JavaScript in order to access the selected text, display the share button to the appropriate position and share the selected text upon a click event over the share button.
Enjoy 🙂
Don’t forget to share, like, subscribe and would love to hear your thoughts in the comment section below!
Code for this Project: https://codepen.io/Coding_Journey/pen...
Support the Channel 💙☕🙏
PayPal: https://paypal.me/CodingJourney
Suggested Videos:
Colorful Background with linear-gradient: • Video
Font Awesome 5 Icons: • Video
Voice Search with JavaScript (Web Speech API): • Video
HTML Drag and Drop API: • Video
Codepen: https://codepen.io/Coding_Journey/
Twitter: / codingjrney
Email: codingjourney123@gmail.com
Subscribe 💖
/ @codingjourney
Nesta página do site você pode assistir ao vídeo on-line Share Selected Text with JavaScript duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Coding Journey 12 Setembro 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 10,448 vezes e gostou 324 espectadores. Boa visualização!