1) You need to use JavaScript to modify a repeated element of unknown count on the page that is different on each page visit. What is the best way to do this?: A) Use document.getElementsByTagName(), then use the return like an array. B) Manually label each element Id, then use document.getElementById(). C) Give the same Id to each element, then use getElementById() like an array. D) Use the highest common parent element, then use recursive search. 2) You are in charge of writing a JavaScript code to tell the user how well his/her password is as it is typed in. What is the best approach? A) Add onsubmit to submit button. Show message if password is weak and return false. B) Add onsubmit to submit button. Disable update button if password is too weak. C) Add onchange to password field. Update a message as password is changed. D) Add onfocusout to password field. Update a message as password is changed 3) What event can we use to animate a picture once it is downloaded?: A) onchange B) onload C) ondownloaded D) ongranted
1) You need to use JavaScript to modify a repeated element of unknown count on the page that is different on each page visit. What is the best way to do this?:
A) Use document.getElementsByTagName(), then use the return like an array. B) Manually label each element Id, then use document.getElementById().
C) Give the same Id to each element, then use getElementById() like an array.
D) Use the highest common parent element, then use recursive search.
2) You are in charge of writing a JavaScript code to tell the user how well his/her password is as it is typed in. What is the best approach?
A) Add onsubmit to submit button. Show message if password is weak and return false.
B) Add onsubmit to submit button. Disable update button if password is too weak.
C) Add onchange to password field. Update a message as password is changed.
D) Add onfocusout to password field. Update a message as password is changed
3) What event can we use to animate a picture once it is downloaded?:
A) onchange
B) onload
C) ondownloaded
D) ongranted
Trending now
This is a popular solution!
Step by step
Solved in 4 steps