-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcart.html
79 lines (66 loc) · 1.77 KB
/
cart.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#cont{
width: 60%;
margin: auto;
justify-content: space-around;
}
#p1{
font-size: 12px;
margin-top: -2px;
font-style: italic;
}
#p2{
margin-top: -2px;
}
#name{
margin-bottom: 15px;
height: 30px;
}
#email{
height: 30px;
}
#city{
margin-top: 20px;
height: 30px;
}
#sub{width: 140px;
height: 35px;
background-color: rgb(0, 179, 255);
color: white;
border: none;
margin-top: 15px;
}
</style>
</head>
<body>
<div id="cont">
<h3>Supplier wants to know more about you</h3>
<div id="a">
<form>
<input id="name" type="text" placeholder="Name" size="30"/>
<br/>
<input id="email" type="email" placeholder="Email" size="30"/>
<p id="p1">Supplier will contact you on this email</p>
<input id="city" type="text" placeholder="City" size="30"/>
<p id="p2">Suggestions:<a href="">Patna</a></p>
<input id="sub" type="submit" >
</form>
</div>
</div>
</body>
</html>
<script>
document.querySelector("form").addEventListener("submit",abc)
function abc()
{
event.preventDefault();
alert("We have accept your request and we will contact you soon");
}
</script>