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.

HTML File:
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
Get step-by-step solutions from verified subject matter experts
