Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 A function that removes all text fields from the webpage. 2 A function that creates and appends a paragraph to the page. The text

1 A function that removes all text fields from the webpage.

2 A function that creates and appends a paragraph to the page. The text for the paragraph should be: New Paragraph Added. Set the font color to be green and the font size to 12.

3 A function that takes one parameter and uses it as the id for an existing element in the page. Then, removes that element from the page. If such id does not exist on the page, an error message should be displayed in the console.

4 A code to add a click event to the button Click Me on the page. Once the button is clicked, a paragraph will be added to the page. Assume that the button already exists on the page.

5 Create a button on the page Hover Your Mouse Here. Once the mouse hovers on this button, the background of the button should get changed to red. Once the mouse leaves this button area, the background color should get changed back to the default value. Once the button is clicked, a duplicated of this button should be added to the page with exact the same event properties.

6 - Use JavaScript to display the coordinates of mouse pointer at all times. Use a

element and display the values inside this div.

7 - Read two integers, namely r and c using tag (input validate required using JavaScript) and use a button labeled Create Table. Once the button is clicked, use JavaScript to create a table with r number of rows and c number of columns. Note: You are required to create the table header and table body. Fill in the cells of the table with random numbers between 1 and 100.

Using Html,Css,javascript

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

What are the design flaws of a mutual fund?

Answered: 1 week ago