1) When is JavaScript generally executed? A) When it is safe to execute B) Once JavaScript code is fully loaded C) Manually by user interaction D) Once HTML code is loaded

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question
1) When is JavaScript generally executed?
A) When it is safe to execute
B) Once JavaScript code is fully loaded
C) Manually by user interaction
D) Once HTML code is loaded

2) What is an appropriate method to access the following using JavaScript?
<p name = "meow" id = "cat"> neko</p>
A) document.cat
B) getElementByName("meow")
C) getElementById("meow")
D) getElementById("cat")
 
3) 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.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Block Comments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT