Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How does bit.ly copy to the clipboard?
- Lao Ming
November 19, 2009, 11:11 am
rate this thread
I'll guess that most people have used http://bit.ly at some point.
obtain a short url, you get a "Copy" button to copy the short url to
the clipboard. I looked at the source and cannot determine how they
do this. While the word "Copy" does not appear in the source, it easy
to narrow it down as to where one would think it would be.
The short URL is prefaced by "Your bit.ly link:" and the source is
following it is below:
<h2>Your bit.ly link:</h2>
<input id="shortened-url" value="http://bit.ly/2EEjBl " /
<span style="display:none;" id="short_url">http://bit.ly /
The lines following this go beyond the Copy button so the Copy button
must somehow be in this. :) Anyway, there's no sign of it. I
checked the style IDs in the CSS but nothing was there either. The
css is below.
border: 1px solid #999;
padding: 6px 0 0 6px;
#index_copy_button object, #info_copy_button object
If anyone could give me a few pointers in figuring this out (or even
glaringly point out the obvious), I'd much appreciate it.
- Harlan Messinger
November 20, 2009, 2:51 pm
- » how to make email signature compatible with Microsoft Outlook
- — Next thread in » HTML Authoring Forum