Nick Frostbutter

tag

snippets

Current year with JavaScript getFullYear()

Current year with JavaScript getFullYear()

Did you hard code the year in your footer? New year, new problems. Get the current year in Javascript with the getFullYear() function.

JavaScript copy to clipboard function (no jQuery)

JavaScript copy to clipboard function (no jQuery)

Copy to clipboard with the click of a button. No jQuery, just vanilla JavaScript. Simple. Lightweight.