You can just put ̲ after any word and underline its HTML code.
<input type=button value=S̲end>
It will be:
Submit
But you can create a JavaScript function to do this for you, see
function underlineWord(pos,str){ str = str.substring(0,pos) + str[pos] + "̲" + str.substring(pos+1,str.length); return str; }
Thus, if you do:
underlineWord(0,"string");
You will have:
line
source share