Tweet Highlighted (Selected) Text with jQuery

Tweet Highlighted Text with jQuery
Code Snippet:TweetHighlighted
Author: Waldo Broodryk
Published: March 1, 2024
Last Updated: March 4, 2024
Downloads: 1,166
License: MIT
Edit Code online: View on CodePen
Read More

Tweet any web page highlighted text just after selecting it. Yes, this jQuery plugin lets you share highlighted text on Twitter in a simple and easy way.

How to Use Tweet Highlighted Text Plugin:

1. To use this plugin, load the jQuery and web flow JavaScript file into an HTML document.

<!-- jQuery -->
<script src=""></script>
<!-- webflow Js -->
<script src="js/webflow.js"></script>

<!-- Tweet Highlighted Js -->
<script src="js/jquery-tweet-highlighted.js"></script>

2. Initialize the plugin with the body sector and define the minimum & maximum text length that will be tweeted. The statements are:

         node: '<a href="#" class="w-button tweet">Tweet</a>',
         minLength: 6,
         maxLength: 240 * 2,
         extra: '',
         via: 'waldobroodryk',
         popupArgs: 'width=600,height=600,toolbar=0,location=0'

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About CodeHim

Free Web Design Code & Scripts - CodeHim is one of the BEST developer websites that provide web designers and developers with a simple way to preview and download a variety of free code & scripts. All codes published on CodeHim are open source, distributed under OSD-compliant license which grants all the rights to use, study, change and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot warrant the full correctness of all content. All trademarks, trade names, logos, and icons are the property of their respective owners... find out more...

Please Rel0ad/PressF5 this page if you can't click the download/preview link