- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialog_prompt.html
More file actions
Latest commit
37 lines (34 loc) · 1.01 KB
/
Copy pathdialog_prompt.html
File metadata and controls
37 lines (34 loc) · 1.01 KB
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
<!DOCTYPE html>
<htmllang="en" ng-app="demo">
<head>
<metacharset="UTF-8">
<metaname="description" content="">
<metaname="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>demo</title>
</head>
<body>
<br/>
<ahref="javascript:void(0);" onclick="removeData()">Remove Data</a>
<script>
functionremoveData(){
if(confirm('u wnat delete data')){
alert('data deleted successfull')
}else{
alert('deleted cancel')
}
}
</script>
<br/>
<ahref="javascript:void(0);" onclick="promptData()">Prompt Data</a>
<script>
(functionpromptData(){
varpass=prompt('Password:','');
if(pass==1234){
window.location.href='https://www.tutorialspoint.com/javascript/javascript_while_loop.htm';
}else{
alert('Password wrong')
}
})();
</script>
</body>
</html>