Christian Heilmann

Automatically turning a text into a link

Friday, December 22nd, 2006 at 12:13 am

While twittering away, Fizzy asked for a solution to link every instance of a word to a certain web site in JavaScript (originally he wanted a CSS solution).

So here is a solution: How to link different words to web sites automatically in JavaScript

Enjoy.

Share on Mastodon (needs instance)

Share on Twitter

My other work: