Is it possible to enable users to copy/paste a url directly with label on a website like in Spotify desktop software?
-
On Spotify desktop software, if I "copy a HTTP link" and paste it in a WYSIWYG field, the link is well built with a label doesn't show the URL. Example: http://open.spotify.com/artist/3a9qv6NLHnsVxJUtKOMHvD
-
Answer:
Yes. It's possible.Bind a COPY event to the url. When the event is triggered, Label is set to the clipboard. url.addEventListener("copy", function(e) { e.preventDefault(); e.clipboardData.setData('text/plain', 'HERE IS LABEL'); return false; }, false); Full demo is http://hk1229.cn/demo/Is-it-possible-to-enable-users-to-copy-paste-a-url-directly-with-label-on-a-website-like-in-Spotify-desktop-software.html. (Only tested on Chrome 28)
Kyle He at Quora Visit the source
Related Q & A:
- How can start to make a website like whateverlife.com?Best solution by Yahoo! Answers
- How do I copy and paste a link?Best solution by Yahoo! Answers
- How to copy and paste a code on my website?Best solution by eHow old
- How can I make a website like facebook for free?Best solution by eHow old
- How to make a website like yahoo answers?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.