<!DOCTYPE html>
<html lang="en">
<head>
<title>Form Display Example</title>
<script type="text/javascript">
function display() {
dispWin =
window.open('','NewWin','toolbar=no,status=no,width=300,height=200')
message = "<ul><li>NAME:" +
document.form1.name.value;
message += "<li>ADDRESS:" +
document.form1.address.value;
message += "<li>PHONE:" +
document.form1.phone.value;
message += "</ul>";
dispWin.document.write(message);
}
</script>
</head>
<body>
<h1>Form Display Example</h1>
<p>Enter the following information. When you
press the Display button, the data you entered will be displayed in
a pop-up.</p>
<form name="form1" method="get" action="">
<p>NAME: <input type="text" name="name"
size="50" /></p>
<p>ADDRESS: <input type="text" name="address"
size="50" /></p>
<p>PHONE: <input type="text" name="phone"
size="50" /></p>
<p><input type="button" value="Display"
onclick="display();" /></p>
</form>
</body>
</html>
Above is the code from the text and below is the edits that I am having trouble adding to the assisnment.
Using Notepad++, copy the code presented in Listing 26.2, "A Form That Displays Data in a Pop-Up Window," in the subsection "Displaying Data From a Form" in the section "Accessing Form Elements With JavaScript" in Ch. 26, "Working with Web-Based Forms of Sams Teach Yourself HTML, CSS and JavaScript All In One. Save the file using the name Week4ValidationExample.html. Test your code and debug as necessary.
Change the name of the display() function to myDisplay() where my is your first name. For example, if your first name were Sam, your display function would be SamDisplay(). Test your code and debug as necessary.
Change the width and height of the pop-up window in which you have set the feedback to appear as 250 and 400, respectively. Test your code and debug as necessary.
In: Computer Science
In: Computer Science
Draw the symbol, Boolean equation, and truth table for
a four-input OR gate
a three-input XNOR gate
a five-input NAND gate
In: Computer Science
In: Computer Science
Explain Trap-and-Emulate and Binary Translation Virtualization Implementation with neat diagrams? Also describe types of Virtual Machines and their Implementations?
In: Computer Science
I have few questions to be ask for search in computer:
1) Draw a min heap with at least 8 nodes.
2) What are two real life examples of a Priority Queue?
3) Draw a min heap with at least 8 nodes.
r
In: Computer Science
Add a 1- to 2-page section to your Playbook/Runbook. Create a prescriptive section of your playbook providing guidelines to secure each of these areas: Network connections Mobile devices Cloud services
In: Computer Science
In: Computer Science
***C++ Coding***
Write a program for sorting a list of integers in ascending order using the bubble sort algorithm. Please include comments to understand code.
Requirements
Implement the following functions:
Here is the content of the file data.txt.
9
8
4
7
2
9
5
6
1
3
In: Computer Science
Sentential Logic Translation:
C ) More jobs (J) will be created and the economy (E) will improve only if government spending (G) is increased and taxes (T) are not raised; however, the deficit (D) will be reduced only if taxes are raised and government spending is not increased, and the economy will improve if and only if the deficit is reduced
In: Computer Science
. Write a C program that asks the user a multiple-choice
question and shows four possible answers, (a) through (d). Prompt
the user to input a response as a character. If the user enters the
correct response, print a message stating that the answer is
correct. If the user enters an incorrect response, print a message
stating that the answer is wrong. If the user enters anything other
than the letters a, b, c, or d, print a message stating that the
input is incorrect.
The below example shows three runs of the program, one for each
type of response (correct, incorrect, invalid input). You are
welcome to change the quiz question and answers, but there must be
a single correct answer to your quiz question.
Tip: use "\t" in your printf statements to print a tab and get
indented output like the quiz answers in the output below.
Welcome to the Quizzer! Here's your question...
What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c)
Munster (d) Crookshanks
Your answer: c Correct!
Welcome to the Quizzer! Here's your question...
What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c)
Munster (d) Crookshanks
Your answer: b Wrong!
Welcome to the Quizzer! Here's your question...
What is the name of Mat's cat? (a) Fluffy (b) Kitty Purry (c)
Munster (d) Crookshanks
Your answer: x Invalid input.
In: Computer Science
How would you show two linked lists are equal? (Java for Data Structures and Algorithms)
In: Computer Science
What is a three-tiered client-server architecture? (operating system)
In: Computer Science
In: Computer Science
Write a program that prompts the user to enter a 3 x 3 matrix of double values and tests whether it is a positive Markov matrix. There will be two methods which will be called from the main method: public static double [] [] createArray() 1. Creates a 3 by 3 two dimensional array of doubles 2. Prompts the user for values as shown in the sample run 3. Stores the numbers in the array in the order entered 4. Returns the array to the main method public boolean isMarkovMatrix(double [][] matrix) 1. Returns false if any value in the array is negative 2. Prints the sum of each column in the array 3. Returns false if any the sum of any of the columns is not equal to 1.0 4. Otherwise, it returns true. Sample Program running: Enter a 3 x 3 matrix by row 0.15 0.875 0.375 0.55 0.005 0.225 0.30 0.12 0.4 The sum of the columns 1.0 1.0 1.0 It is a Markov matrix Enter a 3 x 3 matrix by row -0.2 0.875 0.375 0.75 0.005 0.225 0.45 0.12 0.4 The sum of the columns 1.0 1.0 1.0 It is not a Markov matrix The program must display the sum of EACH INDIVIDUAL column A response in Eclipse Java would be much appreciated. Thank you in advance
In: Computer Science