TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Interesting use of JS: Copy text in an article, then check your clipboard

1 pointsby treypalmost 16 years ago

3 comments

treypalmost 16 years ago
Haven't seen this done before, but pardon me if it has. (I also didn't know the clipboard was accessible in Firefox, but perhaps they're using Flash.)<p>At least on my browser/config, the clipboard now has the text I copied, and a link to the story. Even better -- the link is to a version of the story with the text highlighted in it (using more JS + an anchor).<p>Pretty cool feature, although I could see some people being annoyed/surprised by it.
yreadalmost 16 years ago
That's nice but then again I would expect browser to take care of it. Opera and its notes are just about ideal. You get text, url and datetime. Plus it has a keyboard shortcut, they can organized in folders and searched
yannisalmost 16 years ago
Interesting feature. I know there is a jQuery plugin that uses flash for copy/paste. Anyone can figure how it is done on this page? (They have a combination of traditional javascript and jQuery on the page).