Tweet button with NO URL in the tweet?


I’m trying to use the iFrame version of the tweet button, and I’d like a suggested tweet where Twitter doesn’t add a URL at the end.

Using the javascript version, I’ve successfully used code like this:

<a href="" class="twitter-share-button" data-text="Here is a tweet that I'd like not to have a link at all!" data-count="vertical" data-url=" " data-counturl="">Tweet</a><script type="text/javascript" src=""></script>

And I’ve used just a plain URL version like this:

<a href="!&">Here is a tweet that I'd like not to have a link at all!</a>

I’ve done both of those by passing a blank url parameter, and Twitter responds great. But using the iFrame version, it doesn’t seem to work! Any ideas on how to get this working?

Here’s my code:

<iframe allowtransparency="true" frameborder="0" scrolling="no" src="// " style="width:55px; height:62px;"></iframe>

Custom Tweet Button without URL?

What do you mean by “doesn’t work”? The URL you’re passing to the iframe’d+like+not+to+have+a+link+at+all!&count=vertical&

creates a button which launches an intent containing only the text “Here+is+a+tweet+that+I’d+like+not+to+have+a+link+at+all!”, which, aside from having the spaces encoded incorrectly (they should be %20) looks to be what you wanted.


Huh…adding the http:// in my code instead of // did it! Thanks!


Hm, actually, no, it’s not working consistently. Here’s a test page:

The embedded iframe does not work – it adds the referring URL to the end of the tweet. But taking the iframe source URL (shown below) and putting it into a browser window creates a button that does indeed work. Why the difference?


hi, I have the problem for share button count pls help me anybody… give the solution for me…


To avoid sharing the url of the WebPage just give to the button a wrong one like http://wrong. The Twitter code will try to add the url failing and so leaving your post as desired. For an example try to share a tweet from There inspecting the code you can also find a complete example of a dynamic Twitter button