Skip to navigation Skip to content

Results for “JS”

How to do a copy to clipboard in native JavaScript

As Flash dies a lingering, welcome death and its larger functions are replaced by native code, developers are finding themselves needing alternatives to smaller things it did too. Among them is Flash-based copy to clipboard.

The JavaScript code to do the copy is quite simple, just a single line. Perhaps that’s why when I went looking for JavaScript copy-to-clipboard tips and methods, I found them mainly limited to Stack Overflow threads and the like. I’ve put cobbled them together insights from several and some of my own testing and some insights into a tutorial of sorts.

I also threw... More

Putting my foot(notes) down

I blame my friend for becoming internet famous.

While writing about his voyage through the viral media sausage making machine, I realized that my blog templates had a serious design flaw. I had no place to put my snarky asides.

I needed footnotes. All the cool kids have them on their blogs. 1 John Gruber, for instance.

One of the nice things about having locally sourced, artisanal site that I made myself is that I can just add items as needed. I opened my code editor and wrote up styles for superscript and an ordered... More