Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this assignment, you are required to use JavaScript to perform the following tasks: Research how to perform the following task below. Do not use
In this assignment, you are required to use JavaScript to perform the following tasks:
Research how to perform the following task below.
Do not use node.js
Create a webpage for each question below, ahtml ahtml etc.
Add your source for your code.
A function that removes all text fields from the webpage. Marks
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 Marks
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. Marks
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. Marks
Create a button on the page Click Your Mouse Here Once the mouse clicks 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. Marks
Use JavaScript to display the coordinates of mouse pointer at all times. Use a
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started