Skip to content
Advertisement

Tag: speech-synthesis

How to read the text in a input tag in a p tag?

HTML: JS: When I input some text into the input box the code still reads “placeholder…”, How do I make the code to speak the inputted text? Answer You are grabbing the innerHTML which isn’t going to read text, it’s going to read html. In order to concatenate your input elements and your text, you’re actually going to need to

Advertisement