Ligatures can be enabled by using browser-prefixed versions of the font-feature-settings
property or the text-rendering
property (or, in principle, font-variant-ligatures
, but this is probably not supported by any browser yet). These work both for installed fonts and downloadable fonts, provided that the font contains ligatures and information about them in OpenType format (most fonts commonly used on web pages don’t).
But these are not supported by IE 9 and earlier. There is probably no JavaScript-based way to overcome this. Replacing character sequences by ligature characters is possible of course, but it only works for a small set of ligatures, namely those that have been encoded as characters in Unicode (and only for fonts containing them).