Showing
1 changed file
with
19 additions
and
0 deletions
exit.html
0 → 100644
| 1 | +<!DOCTYPE html> | ||
| 2 | +<html lang="en"> | ||
| 3 | +<head> | ||
| 4 | + <meta charset="UTF-8"> | ||
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| 7 | + <title>Exit</title> | ||
| 8 | +</head> | ||
| 9 | +<body> | ||
| 10 | + <script> | ||
| 11 | + while(!window.closed) { | ||
| 12 | + const message = prompt("If you enter \"exit\", the program will exit"); | ||
| 13 | + if(message == "exit") { | ||
| 14 | + window.close(); | ||
| 15 | + } | ||
| 16 | + } | ||
| 17 | + </script> | ||
| 18 | +</body> | ||
| 19 | +</html> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment