Question: Question 5. Consider the following code fragment: Chtml> cheado This is a Headingk/h1> p>This is a paragraph./p> p>This is another paragraph./p> K/html> Write a piece
Question 5. Consider the following code fragment: Chtml> cheado This is a Headingk/h1> p>This is a paragraph./p> p>This is another paragraph./p> K/html> Write a piece of code in JavaScript to remove all the styles from the web-page. Question 6. Write down a JavaScript expression to remove all the rows of a table>. Assume that there is ONLY one table in the page and that the table has at least one row with at least one column (the exact number of columns is unknown to us) Question 7. Develop a JavaScript function that takes a DOM element as argument and reverses the order of its children, i.e. first child becomes last child, second child becomes one before last child, etc. (This question in duplicated from Test Two)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
