Question: In your HEAD section, write a single JavaScript function called FormatPage() that changes the style properties of the webpage using the form provided. Two examples

In your HEAD section, write a single JavaScript function called "FormatPage()" that changes the style properties of the webpage using the form provided. Two examples are provided below, showing the results after the user clicks the format button.

There is no need to modify the form. All the code for this assignment will be in the Single JS Function you will write.

Use document.getElementById to find the value of each of the fields on the form.

Then use document.body.style to set the values of the styles.

In your HEAD section, write a single JavaScript function called "FormatPage()" that

HTML File:

DOM CSS

Background Color:


Foreground Color:


Text Face:

Times New Roman

Arial

Courier New

Comic Sans MS

Verdana


Text Size:


Text Style:

Bold

Italic

Underline


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!