Question

Which of these is a valid DOM property that refers to the value of an input...

Which of these is a valid DOM property that refers to the value of an input text field?

Select one:

a. value

b. data

c. contents

d. text

e. size

Which of these CANNOT be accessed using BOM objects?

Select one:

a. the user's history of visited URLs

b. information about the URL of the current page

c. browser cookies

d. information about the user's screen

e. information about the user's mouse

Which of these is a valid DOM method that can be used to get a reference to an element via its ID attribute?

Select one:

a. getElement()

b. attribute()

c. element()

d. getAttribute()

e. getElementById()

Which of these is true of JavaScript?

Select one:

a. JavaScript can change any HTML attribute in the page.

b. JavaScript can add new HTML elements and attributes to the page.

c. all of these

d. JavaScript can change any HTML element in the page.

e. JavaScript can change any CSS style in the page.

Which of these is at the top of the HTML DOM tree of objects?

Select one:

a. document

b. href

c. <head>

d. <body>

e. <html>

0 0
Add a comment Improve this question Transcribed image text
Answer #1
1)  a. value
2)  a. the user's history of visited URLs
3)  e. getElementById()
4)  c. all of these
5)  a. document

Add a comment
Know the answer?
Add Answer to:
Which of these is a valid DOM property that refers to the value of an input...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Which of these refers to the name:value pairs in JavaScript objects? Select one: a. attributes b....

    Which of these refers to the name:value pairs in JavaScript objects? Select one: a. attributes b. methods c. elements d. variables e. properties Which of these is a popup box that allows the user to click OK or Cancel? Select one: a. prompt box b. choice box c. acknowledgment box d. alert box e. confirm box Which of these is used to register an event handler for clicking the mouse? Select one: a. onmouse b. onMouseClick c. onclick d. click...

  • Must be car Themed My first JS-DOM color:red; text node!'); //creates 'This is a text node!'...

    Must be car Themed My first JS-DOM color:red; text node!'); //creates 'This is a text node!' color:blue; font-family: arial; Clicker Counter: 0 Interface should look something like this, but does not have to be one for one like this picture One of JavaScript's powers is to be able to interact with the DOM directly. You've seen this when using commands such as document.getElementById("idName'). This document allows you to search HTML for certain elements. It turns out that you can also...

  • This is my code so far: <!DOCTYPE html> <html> <head> <title>JavaScript is fun</title> <meta charset="utf-8" />...

    This is my code so far: <!DOCTYPE html> <html> <head> <title>JavaScript is fun</title> <meta charset="utf-8" /> </head> <body> <script type ="text/javascript"> //declare a variable and store text in it var x = "JavaScript is fun"; //write the variable 5 times document.write(x + x + x + x + x); //store 5 as string in variable x x = "5"; //store 3 as string in variable y var y = "3"; //write the value x + y to the document document.write("<br>");...

  • Javascript each item must have at least three categorical attributes and at least one numeric attribute....

    Javascript each item must have at least three categorical attributes and at least one numeric attribute. Attributes such as ID, name etc do not count as categorical or numeric attributes. Exercise 1 (a) Define a class for your item that meets the above three categorical and one numeric attribute requirements. (b) Create a text file that contains at least 5 such records in CSV format. (c) Create a HTML page that contains a table element the shows one item record...

  • Fake News This exercise is about modifying the content of a page in your web browser using Javascript. As we have said, Javascript has access to the current page via the Document Object Model or DOM....

    Fake News This exercise is about modifying the content of a page in your web browser using Javascript. As we have said, Javascript has access to the current page via the Document Object Model or DOM. In your browser, the variable document represents the current document and your code can use it to read and write to the current page. In this exercise we will use the developer tools Javascript console to write Javascript to access parts of the main...

  • This is for HTML / Javascript, Thank you very much! Which event handler, underlines the text...

    This is for HTML / Javascript, Thank you very much! Which event handler, underlines the text in an element with id of 'last'. 1. <p onclick="getElementById('last').style.textDecoration='underline'" > some text </p> 2. <p onclick="document.last.style.textDecoration='underlined'" > some text </p> 3. <p onclick="last.style.text-decoration='underline'" > some text </p> 4. <p onclick="getElementById('last').style.text-decoration='underline'" > some text </p> Which statement about the event handlers in these two paragraphs is correct. <p id="p1" onclick="getElementById('p2').style.color='red'" > This is the first paragraph </p> <p id="p2" onclick="this.style.backgroundColor='blue'" > This is the...

  • Javascript to edit a HTML file. Where to begin? <!doctype html> <html>    <head>      <meta charset="utf-8">      <title>TODO:...

    Javascript to edit a HTML file. Where to begin? <!doctype html> <html>    <head>      <meta charset="utf-8">      <title>TODO: Change The Title</title>    </head>    <body>      <h1></h1>      <p>First paragraph.</p>      <p class="intro">Second <span>paragraph</span>.</p>      <button id="start">Start</button>      <main> </main>      <!--       Test 6: DOM Programming       You MAY consult the notes for week 7, but you MAY NOT discuss this test or       your code with any other students.  All work must be your own.       Instructions:              1. Put all solution code in a file named solution.js.  When you upload your          solution to...

  • Create a webpage in which the user is allowed to select the page's background and color...

    Create a webpage in which the user is allowed to select the page's background and color whether the page uses serif or sans serif fonts. The change the body element's style attribute accordingly. If the user onclicks any of the options, the webpage will turn into that format. For example, if the user clicks "Gray background", the background color of the webpage will be Gray. If the user clicks Serif-text, the text in the web page will be in Serif...

  • 26. Which of the following is valid HTTP request method syntax?e a. HTTP/1.0 / GET c....

    26. Which of the following is valid HTTP request method syntax?e a. HTTP/1.0 / GET c. GET / www.example.come b. GET/ HTTP/1.1 d. POST HTTP/1.0 27. Which of the following is a valid example of an HTTP status code:“ a. Error: No such address c. Oxb7e b. 404 d. 64 28. Which of the following header lines is a valid example of how an HTTP server indicates the MIME type of the data it is sending? a. MIME-Type: text/html c....

  • 1) JavaScript is used on the client-side to provide interactivity with the user. a) True b)...

    1) JavaScript is used on the client-side to provide interactivity with the user. a) True b) False 2) Which one of the following is considered a client-side technology? a) PHP b) MySQL c) Java Servlets d) Css 3) Which one of the following is predominantly a server-side technology? a) PHP b) Javascript c) HTML d) Css 4) Which form element requires a user to select one item only from multiple choices. a) Check box b) Text box c) Radio button...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT