-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathredirected.html
28 lines (27 loc) · 913 Bytes
/
redirected.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<h1>Redirect Page</h1>
<p>You will be redirected back to the original page in 5 seconds.</p>
<script type="text/javascript">
function redirectToOriginal() {
// Redirects back to redirect.html with the same parameters
const params = window.location.search;
const url = "https://prigiattiperrut.github.io/redirect.html" + params;
window.location.href = url;
}
document.addEventListener("DOMContentLoaded", function() {
// Redirect back after 5 seconds
setTimeout(redirectToOriginal, 5000);
});
</script>
</head>
<body>
<h1>You have been redirected</h1>
<p>URL Parameters:</p>
<script>
document.write("<pre>" + decodeURIComponent(window.location.search.substr(1)) + "</pre>");
</script>
</body>
</html>