✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
On a web page, displays "Enter command: ", followed by a text field for the user to enter a command. The user can enter a command and press the Enter key to execute the command.
There are two valid commands: "display lion" and "display frog".
When the user enters the command "display lion" and presses Enter key, then an image
of a lion is displayed on the webpage.
When the user enters the command "display frog" and presses Enter key, then an image
of a frog is displayed on the webpage.
If the user enters an invalid command and presses Enter key then an alert window
appears which says "Invalid command".
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!