Question
Javascript Html sample Create a keyup event handler on the first text box. The event handler should execute a function that checks to see if
Javascript
Html sample
Create a keyup event handler on the first text box. The event handler should execute a function that checks to see if the key that was released is the enter key.
If it was, the function should get the string from this text box and find its length.
Then determine whether the strings length is even or odd and display the string, its the length and whether its even or odd back to the paragraph the webpage.
sample output after the user types in a string and presses enter:
Write an event handler so that when the user clicks the Compare Values button a function executes. This function should get each of the values from the second and third text boxes. If either number the user enters is ZERO you should print You entered 0 to the on the webpage. If the numbers are the same, you should print They each divide the other.
If the first number is evenly divisible by the second, you should print that to the screen.
If the second number is evenly divisible by the first number, you should print that to the screen. Otherwise, you should print that they are not divisible.
Sample output
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