Skip to content

Commit 79db444

Browse files
author
doublebyte1
committed
- added redirection for sprints/27
1 parent 7b184a9 commit 79db444

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

sprints/27/index.htm

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Here are the two best ways to do this in HTML. You can copy and paste either code block into an .html file.
2+
3+
Option 1: The Meta Refresh Method (Standard)
4+
5+
This is the most common HTML-only method. It tells the browser to refresh the page after 0 seconds and load the new URL.
6+
7+
code
8+
Html
9+
download
10+
content_copy
11+
expand_less
12+
<!DOCTYPE html>
13+
<html>
14+
<head>
15+
<meta charset="UTF-8">
16+
<!-- Replace the URL below with your destination -->
17+
<meta http-equiv="refresh" content="0; url=https://www.example.com">
18+
<title>Redirecting...</title>
19+
</head>
20+
<body>
21+
<!-- The body is empty, so the page appears blank -->
22+
</body>
23+
</html>
24+
Option 2: The "Bulletproof" Method (Meta + JavaScript + Fallback)
25+
26+
This is the most robust version. It tries to redirect immediately using JavaScript (which is faster). If that fails, it uses the Meta tag. If both fail (very rare), it provides a clickable link so the user isn't stuck.
27+
28+
code
29+
Html
30+
play_circle
31+
download
32+
content_copy
33+
expand_less
34+
<!DOCTYPE html>
35+
<html>
36+
<head>
37+
<meta charset="UTF-8">
38+
<title>Redirecting...</title>
39+
40+
<meta http-equiv="refresh" content="0; url=https://events.ogc.org/5JointOGC-OSGeo-ASFCodeSprint">
41+
42+
<script>
43+
window.location.replace("https://events.ogc.org/5JointOGC-OSGeo-ASFCodeSprint");
44+
</script>
45+
</head>
46+
<body>
47+
<p>If you are not redirected automatically, <a href="https://events.ogc.org/5JointOGC-OSGeo-ASFCodeSprint">click here</a>.</p>
48+
</body>
49+
</html>

0 commit comments

Comments
 (0)