-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathinput.html
29 lines (28 loc) · 887 Bytes
/
input.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css">
<script>
function Add(){
var folder = prompt("Enter Name");
if(folder==null) {
document.write("You Canceled");
} else if(folder=="") {
document.write("Folder Name Can't be Empty")
} else {
document.getElementById("msg").innerHTML +=
"Folder Created : " + folder + "<br>";
}
}
</script>
</head>
<body>
<div class="container">
<h2>Add Folder</h2>
<button onclick="Add()" class="btn btn-primary">New Folder</button>
<br>
<div id="msg" class="text-center">
</div>
</div>
</body>
</html>