Computer Science Question

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Is the written code in java-script?

1- <html>
<head>
3-
<script>
function FUN() {
var staff_id =
document.forms["FORM"]["customerID"];
var dept =
document.forms["FORM"]["customername"];
4 -
7
8
var ADD =
10
document.forms["FORM"]["customerAddress"];
11
var MOBILE =
document.forms["FORM"]["CustomerMobile"];
if (customer_id.value == "") {
window.alert("Please enter your cust id.");
customer_id.focus();
return false;
}
if (customername.value == "") {
window.alert("Please enter your name.
customername.focus();
return false;
}
if (customerAddress).value
window.alert(
"Please enter a address.");
cistomerAddress.focus();
return false;
}
if (customermobile.value
window.alert(
"Please enter your mob.");
customermobile.focus();
return false;
}
return true;
12
13
14
15
16
17
18 -
19
.");
20
21
22
23
"") {
24
25
26
27
28
29 -
"") {
==
30
31
32
33
34
35
}
</script>
36
37
38
39
<style>
div {
box-sizing: border-box;
width: 100%;
border: 100px solid black;
float: left;
align-content: center;
align-items: center;
40
41
42
43
44
45
46
Transcribed Image Text:1- <html> <head> 3- <script> function FUN() { var staff_id = document.forms["FORM"]["customerID"]; var dept = document.forms["FORM"]["customername"]; 4 - 7 8 var ADD = 10 document.forms["FORM"]["customerAddress"]; 11 var MOBILE = document.forms["FORM"]["CustomerMobile"]; if (customer_id.value == "") { window.alert("Please enter your cust id."); customer_id.focus(); return false; } if (customername.value == "") { window.alert("Please enter your name. customername.focus(); return false; } if (customerAddress).value window.alert( "Please enter a address."); cistomerAddress.focus(); return false; } if (customermobile.value window.alert( "Please enter your mob."); customermobile.focus(); return false; } return true; 12 13 14 15 16 17 18 - 19 ."); 20 21 22 23 "") { 24 25 26 27 28 29 - "") { == 30 31 32 33 34 35 } </script> 36 37 38 39 <style> div { box-sizing: border-box; width: 100%; border: 100px solid black; float: left; align-content: center; align-items: center; 40 41 42 43 44 45 46
39
<style>
div {
box-sizing: border-box;
width: 100%;
border: 100px solid black;
float: left;
align-content: center;
align-items: center;
}
form {
margin: 0 auto;|
width: 600px;
}
40
41
42
43
44
45
46
47
48
49
50
51
52
</style>
</head>
<body>
53
54
<h1 style="text-align: center;">Customer Window</h1>
<form name="RegForm" action="/submit.php"
55
56 -
onsubmit="return GEEKFORGEEKS()" method="post">
<p>Customer ID: <input type="text"|
57
58
59
size="65" name="ID" /></p>
60
<br />
61 -
<p>Customer Name: <input type="text"
62
size="65" name="custNmae" />
</p>
<br />
<p>Custome Address: <input type="text"
63
64
65 -
66
size="65" name="Password" /×/p>
67
<br />
68
<p>Cutomer Mobile: <input type="text"
69
size="65" name="Telephone" /></p>
70-
<p>
71
<input type="submit"
72
value="send" name="Submit" />
73
<input type="reset"
74
value="Reset" name="Reset" />
</p>
</form>
</body>
75
76
77
78
S/html>
Transcribed Image Text:39 <style> div { box-sizing: border-box; width: 100%; border: 100px solid black; float: left; align-content: center; align-items: center; } form { margin: 0 auto;| width: 600px; } 40 41 42 43 44 45 46 47 48 49 50 51 52 </style> </head> <body> 53 54 <h1 style="text-align: center;">Customer Window</h1> <form name="RegForm" action="/submit.php" 55 56 - onsubmit="return GEEKFORGEEKS()" method="post"> <p>Customer ID: <input type="text"| 57 58 59 size="65" name="ID" /></p> 60 <br /> 61 - <p>Customer Name: <input type="text" 62 size="65" name="custNmae" /> </p> <br /> <p>Custome Address: <input type="text" 63 64 65 - 66 size="65" name="Password" /×/p> 67 <br /> 68 <p>Cutomer Mobile: <input type="text" 69 size="65" name="Telephone" /></p> 70- <p> 71 <input type="submit" 72 value="send" name="Submit" /> 73 <input type="reset" 74 value="Reset" name="Reset" /> </p> </form> </body> 75 76 77 78 S/html>
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Input and Output Performance
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.
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education