Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

i want this answer for eclipse work space image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. What is the difference between the mind and the brain?

Answered: 1 week ago

Question

1. Describe the types of power that effective leaders employ

Answered: 1 week ago