Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a short javascript page. See attached instructions Write a complete webpage with HTML and embedded JavaScript code. This page contains an ordered list and
Write a short javascript page. See attached instructions
Write a complete webpage with HTML and embedded JavaScript code. This page contains an ordered list and a button, as shown below OD Kotrte Fruit Lik Fruits oApple 2. Drange Strawbe Ro tate Follow the example at https://www.w3schools.com/isref/event onclick.asp, add an onclick event and its event handler to this button. The event handler is a JavaScript function that does following jobs After the button is clicked, all list items are shifted downward one place circularly. That is the last item at the bottom is shifted to the top of the list. The getElementsByTagName) method must be used such and your JavaScript code should adapt all possible list size smoothly, without changing JavaScript code. Not using this method, 50 points deduction will be applied. Hint: use a for loop to make code scalable to list size. Duplicating the array generated from calling getElementsByTagName) method is NOT recommended and will result in 10 points deduction. . The getElementByld0 method should NOT be used with list item, otherwise 20 points deduction will be appliedStep 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