HTML : How do I extend selection to word boundary using JavaScript, once only?

Published --