i want this answer for eclipse work space
Problem 2 JavaScript can insert data inside HTML elements. For example, if you have a div tag as follows:
JavaScript can insert a word inside the div as follows: document.getElementById("words").innerHTML = "Hello"; Create an HTML form as follows:
Write JavaScript code so that when you type something in the text box and click the button, the text you typed in the input field show up inside the div. After you get that to work, update the program so it only displays every other word from the input string. JavaScript has a way to split a String using the split function. https://www.w3schools.com isref/isref split.asp After you split the string, display a string made up of every other word, starting with the first word. So, if the person typed in "My brown dog Boomer is very hungry.", the text in between the div will be "My dog is hungry.". My dog is hungry. Sentence: My brown dog Boomer is very hungry talk Problem 2 JavaScript can insert data inside HTML elements. For example, if you have a div tag as follows:
JavaScript can insert a word inside the div as follows: document.getElementById("words").innerHTML = "Hello"; Create an HTML form as follows:
Write JavaScript code so that when you type something in the text box and click the button, the text you typed in the input field show up inside the div. After you get that to work, update the program so it only displays every other word from the input string. JavaScript has a way to split a String using the split function. https://www.w3schools.com isref/isref split.asp After you split the string, display a string made up of every other word, starting with the first word. So, if the person typed in "My brown dog Boomer is very hungry.", the text in between the div will be "My dog is hungry.". My dog is hungry. Sentence: My brown dog Boomer is very hungry talk