TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I just learned about HTML redirects (2020)

110 pointsby sc90about 2 years ago

22 comments

gbraadabout 2 years ago
I remember once learning that php has a `header` function and have been using 'location:...' since ever (pre-2000) as php was almost always supported by hosters like dreamhost, hostgator, and nearly every Linux install came pre-installed with Apache and the php mod. The meta htttp-equiv was a last resort (like gh-pages). Never really used the JS option unless it was part of the application.
handscleanabout 2 years ago
This is also used as a poor man’s live feed: just use this element to reload the page or frame on a set interval.
评论 #35672000 未加载
评论 #35676833 未加载
评论 #35676805 未加载
评论 #35676010 未加载
评论 #35671806 未加载
评论 #35673190 未加载
aendrukabout 2 years ago
Ah, and next you might discover one of my favorite unresolved browser issues:<p><a href="https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=63107" rel="nofollow">https:&#x2F;&#x2F;bugs.chromium.org&#x2F;p&#x2F;chromium&#x2F;issues&#x2F;detail?id=63107</a>
Repturabout 2 years ago
My fav was Marquee. Could put one inside the other, make one vertical, add some text and watch it bounce around like the DVD screensaver logo.
评论 #35672395 未加载
moritzwarhierabout 2 years ago
I remember these from when I initially taught myself HTML (4) and CSS as a kid.<p>It&#x27;s kind of amazing how parts of the spec that seem dated or obsolete can still be useful today and are even widely used in corner cases.
评论 #35675128 未加载
评论 #35671711 未加载
kristopolousabout 2 years ago
Combining it with the referrer tag and you can make some pretty interesting graphs. With frames you can even do Floyd&#x27;s algorithm.<p>I made a demo of this about 20 years ago but I think it just confused people. One of my early flops that I thought was cool. It was all in perl and I think there was some JS in there as well but I don&#x27;t remember anymore. No idea where it is now.<p>Rewrite it and make a hyped up pitch page. People will call you a genius and I&#x27;ll pretend not to care
pooperabout 2 years ago
I was so sure archive.is&#x2F;wip&#x2F;xxxxxx used this but I just checked and it uses<p>&lt;script&gt;{setInterval(function(){document.location.reload();},5000)}&lt;&#x2F;script&gt;<p>now<p>for example, I tried out view-source:<a href="https:&#x2F;&#x2F;archive.fo&#x2F;wip&#x2F;RpDSg" rel="nofollow">https:&#x2F;&#x2F;archive.fo&#x2F;wip&#x2F;RpDSg</a><p>does anyone else remember seeing meta refresh? if so, any idea why they switched to javascript reload
stuckkeysabout 2 years ago
Ahh. This brings back memories. I used to do this when I was using Adobe (Macromedia originally) FLASH back in the day. If no FLASH, show them the shitty version. HAHA. Good times.
评论 #35672243 未加载
GrumpyNlabout 2 years ago
Sometimes im flabbergasted on how the most basic html knowledge is lost on newer generations.
评论 #35674616 未加载
评论 #35674656 未加载
dmdabout 2 years ago
Ok, I&#x27;ll bite - how <i>else</i> do people do this? (Speaking as someone who has ONLY ever done it this way.)
评论 #35671839 未加载
评论 #35672345 未加载
评论 #35671840 未加载
评论 #35671829 未加载
评论 #35672046 未加载
masenfabout 2 years ago
I&#x27;ve recently deployed this trick on my company&#x27;s confluence instance (with an HTML macro) to create a &quot;poor man&#x27;s&quot; link shortener that allows me to change the link target after the fact.<p>Also recently deployed it as a very simple server side denounce: when the client first accesses page X a long running operation is dispatched. Subsequent requests for the same resource before it&#x27;s done processing return a plain HTML response that says &quot;Still thinking about it&quot; and meta refresh after 1 second.
评论 #35673995 未加载
crooked-vabout 2 years ago
This reminds me of the days of making text adventures that used a width 0 frame to store background variables.
9034725985about 2 years ago
I use<p>&lt;meta http-equiv=&quot;refresh&quot; content=&quot;300&quot;&gt; to do speed test from fast.com<p>see:<p>view-source:<a href="https:&#x2F;&#x2F;angularten.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;angularten.github.io&#x2F;</a>
latchkeyabout 2 years ago
I remember when it was released as a new feature (~1995).
TRiG_Irelandabout 2 years ago
Amazing that these were forgotten!
rawbertabout 2 years ago
Hehe, the good old html meta redirect. As a kid in the early days of the web I loved to post redirects to porn websites in guestbooks to check if the website was sanitizing the user content properly. Worked way to often :D
mikeceabout 2 years ago
This reminds me that while I’ve been programming for a paycheck since 1998 my knowledge growth in html stopped at about 2001. Are there any good courses or recommendations for seasoned pros who never stopped to learn HTML5?
评论 #35676041 未加载
评论 #35675306 未加载
javajoshabout 2 years ago
I use this trick to autorefresh the resource that I&#x27;m working on.
moltarabout 2 years ago
Putting 0 value used to be a bad idea, as it was a signal to the browser and various ad blockers and anti viruses that it was a rogue redirect. Wonder if it’s different these days?
bryanrasmussenabout 2 years ago
when they just learned about it was in 2020.
fergieabout 2 years ago
Goddammit!
Uptrendaabout 2 years ago
Noob learns basic HTML tag. The post.