JQUERY twitter tweet jquery - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Together We Can Simplify The World
Just a Web Code Solution

twitter tweet using jquery


 10

JQUERY


0

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
</head>

<body>

<button class="shareToTW">share to twitter</button>

<script>

$(document).ready(function () {

$(".shareToTW").click(function () {

var x = "https://net-raft.com"; // or use location.href;
var y = "here write your text";
var res = y.replace(/s/g, " ");

window.open("https://twitter.com/intent/tweet?text=" + res + " &url=" + x);

});

});

</script>

</body>
</html>


By     Created   
The power of the user (%)
34%



The most helpful JQUERY solutions

plugin get client ip address using jqueryplugin get client ip address using jqueryJQUERY

Click to see more ...

  4.8K     1.3K

How to get client machine name or computer name with jquery?How to get client machine name or computer name with jquery?JQUERY

Click to see more ...

  4K     720

plugin detect country jqueryplugin detect country jqueryJQUERY

Click to see more ...

  1.9K     562

show position on google map jqueryshow position on google map jqueryJQUERY

Click to see more ...

  1.5K     387

cookie jquerycookie jqueryJQUERY

Click to see more ...

  1.4K     381

How to detect the version of IE browser using jquery ?How to detect the version of IE browser using jquery ?JQUERY

Click to see more ...

  1.1K     311

plugin convert thousands to K jqueryplugin convert thousands to K jqueryJQUERY

Click to see more ...

  797     258

How to get top, right, left, bottom position of element div using jquery ?How to get top, right, left, bottom position of element div using jquery ?JQUERY

Click to see more ...

  542     207

how to get ip address using jquery ?how to get ip address using jquery ?JQUERY

Click to see more ...

  511     193

how to create a jquery plugin for converting date to days ago, month ago and year ago ?how to create a jquery plugin for converting date to days ago, month ago and year ago ?JQUERY

Click to see more ...

  459     189

Hi net-rafter,
create the complete solutions that will be
used by the developers from all around the world.

join us - click to create your account