Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801148
Author: Terry Felke-Morris
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 14, Problem 4HOE
Program Plan Intro

Program Plan:

  • Include the HTML tag using “<html>”.
    • Include the heading tag using “<head>”.
      • Open the title tag using “<title>” with appropriate title and close the tag.
      • Open the script tag using “<script>”.
        • Inside the script tag, declare the variables “name” and “age” to get inputs from user.
        • Prompt the user to get name and store it in “name” variable.
        • Prompt the user for age and store it in “age” variable.
        • Display the message with name and age using “alert” box.
      • Close the script tag using “</script>”.
  • Close the file using “</html>” tag.

Blurred answer
Students have asked these similar questions
In Java. Ask the user for a starting point and ending point. Sort the user list using the method in the previous question, but only display the users within the entered range. I already have a code, but it doesn't sort right. I believe there is something wrong.   Here is the data text. I can't copy and paste it because it is too long. https://textuploader.com/t1ol7 The image without the red highlight should be the correct output. Code:import java.io.File;import java.io.FileNotFoundException;import java.util.ArrayList;import java.util.Scanner;public class Users{public static void main(String[] args){String filename = "user-database.txt";Scanner infile = null;try {infile = new Scanner(new File(filename));} catch (FileNotFoundException e) {System.out.println(e.getMessage());}ArrayList usernames = new ArrayList();ArrayList passwords = new ArrayList();int start, end;Scanner input = new Scanner(System.in);System.out.println("Enter a starting point and ending point");start =…
Any event handler is always passed a special event object that represents the event that fired to trigger this function. You can use it to access information about the event, such as which element was the target (event.target), the location of the mouse (event.clientX and event.clientY), etc. FOR EXAMPLE: Following page has button - which when clicked alerts user with pageX & pageY position. NOW, replace the script (alert within function that is bold and italic) to display the the input tag value = "Click Here" using single line of code (within alert box). ... document.getElementByld("testbutton").onclick = function(event) { alert(event.pageX+","+event.pageY); }; %3D
Use a TextArea, and its setText() and append() methods to write an application that allows the user to select options for a dormitory room. Use CheckBoxes for options such as private room, Internet connection, cable TV connection, microwave, refrigerator, and so on. When the application starts, use a text area to display an appropriate message. After the user has selected the desired options, replace the message in the text area so it displays a running list of the user’s choices.
Knowledge Booster
Background pattern image
Computer Science
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
  • Text book image
    EBK JAVA PROGRAMMING
    Computer Science
    ISBN:9781337671385
    Author:FARRELL
    Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT