
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Create two prompts in JavaScript and ask the user what their name is and what their favorite color is. After the user fills out both of these prompts, write a string to the HTML page saying "My name is (inputted name) and my favorite color is (inputted color)"
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 8 steps with 6 images

Knowledge Booster
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
- Create a web page that contains three buttons and two images. To meet the requirements follow the instructions given below by writing JavaScript and jquery: When user clicks the “Hide Images” button, both images should be vanished (jquery). When user clicks the “Show Images” button, both images should be appeared again (jquery). When user clicks the swap button, the height of both images should be swapped (JavaScript).arrow_forwarddo this in a visual studio code (php), correctly. Add below a list that displays the top ten dogs in the show. This is defined as the ten dogs who have the highest average scores, provided they have entered more than one event. Display just the dog’s name, breed, and average score. Next to each dog, add the name of the owner and the owner’s email address. The email address link should start up the default email application to send an email to the owner. The owner’s name should link to a second page containing the owner’s contact details.arrow_forwardI have the HTML part down - I'm just needing help with the javascirpt function. You must create a website page that asks the user to input information about themselves to see if they might be a good study buddy for you. Your webpage must have a form that posts information to StudyBuddy.js. You form must have a submit button labeled submit. You must have at least 3 of the following elements: text input element set of radio buttons checkbox drop down list box list box textarea All elements on your html page must be a different type. (i.e., You may not use 3 text input elements.) Each input must have a label that describes the value being input. Each input must have a label to signify if there is an error in the value entered for that field. You must use the following HTML 5 attributes at least once: autocomplete required novalidate pattern title You must add a function to StudyBuddy.js that will be called when the submit button is pressed. For each of the three elements you add…arrow_forward
- 7-Fully explain the following code and draw all possible outputs. JavaScript HTML DOM Finding HTML Elements by Tag Name This example demonstrates the getElementsByTagName method. const x = document.getElementById("main"); const y = x.getElementsByTagName("p"); document.getElementById("demo").innerHTML = 'The first paragraph (index 0) inside "main" is: y[0].innerHTML;arrow_forwardUsing HTML and Javascript inside <body> section use tag to create a vector graphic area with 200 points as width and height and xmlns ="http://www.w3.org/2000/svg" and then create a blue circle of radius 50 at the location (100,100) inside. 5) Write JavaScript so that when the user clicks on the circle, the circle disappears.arrow_forwardPlease help me with this question. I am having trouble understanding what to do. The HTML code is provided in one of the images below as well as the instructions. The client_side.js and the CSS code are provide below Thank you CLIENT; var url = "http://localhost:3000/post"; var myID; var guessWord; function resetGame(){ var myName = prompt("What is your name?") document.getElementById("mistakes").innerHTML = "Wrong Letters: " // request server to start a new game! $.post(url+'?data='+JSON.stringify({ 'name':myName, //client's identity on the server 'action':'generateWord'}), response); } function printGuess(){ //you write code here! //1. Locate the HTML element with ID 'guessarea' //2. Cycle through the 'guessWord' array and write // each character to the 'guessarea' in turn } function makeGuess(){ //ask the server to validate the guess $.post(…arrow_forward
- Suppose there is a text box on your browser window called FirstName. When you scroll up or down, the text box does not move at all while other elements on the page do move. What value for the position property would FirstName have? A) absolute B) relative C) fixed D) staticarrow_forwardWrite a complete code for an HTML page containing a JavaScript program that displays an alert dialog box with your first name and last name on this alert box.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education