Q6 Create Javascript Function Called Turns Background Colour Text Q37019375

Hello,

Please assist me with this question in html and javascriptlanguage. Thank you.

Q6. (a) Create a JavaScript function which, when called, turns the background colour of all text in <br and <div> elements of

Q6. (a) Create a JavaScript function which, when called, turns the background colour of all text in <br and <div> elements of the HTML page into blue. However, you cannot use getElementByTagName here (or any other built-in function which finds elements by their names… Instead, you need to traverse (walk through) the DOM tree element by element. Remember that elements might be nested within

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.