-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathoutout.html
43 lines (42 loc) · 1.41 KB
/
outout.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css">
<script>
function Delete() {
var x = confirm("Are you sure want to delete?");
if(x==true) {
document.getElementById("msg").style.display = "block";
document.getElementById("msg").innerHTML = "<marquee>Record Deleted</marquee> <br> <input class='btn btn-primary' type='button' value='OK' onclick='OkClick()'>";
}
else {
alert("Record Restored");
}
}
function OkClick(){
document.getElementById("msg").style.display ="none";
}
</script>
<style>
#msg {
width:200px;
height: 100px;
display:none;
color: red;
font-weight: bold;
font-size: larger;
margin: auto;
border: 2px red solid;
}
</style>
</head>
<body>
<div class="container">
<h2>Delete Record</h2>
<input onclick="Delete()" class="btn btn-danger" type="button" value="Delete">
<br>
<div id="msg" class="text-center">
</div>
</div>
</body>
</html>