selectionStart property on type=color
selectionStart property on type=text
Select 'mdn' word from the text :
Select mdn text