TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I just learned about HTML redirects (2020)

110 点作者 sc90大约 2 年前

22 条评论

gbraad大约 2 年前
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.
handsclean大约 2 年前
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 未加载
aendruk大约 2 年前
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>
Reptur大约 2 年前
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 未加载
moritzwarhier大约 2 年前
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 未加载
kristopolous大约 2 年前
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
pooper大约 2 年前
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
stuckkeys大约 2 年前
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 未加载
GrumpyNl大约 2 年前
Sometimes im flabbergasted on how the most basic html knowledge is lost on newer generations.
评论 #35674616 未加载
评论 #35674656 未加载
dmd大约 2 年前
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 未加载
masenf大约 2 年前
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-v大约 2 年前
This reminds me of the days of making text adventures that used a width 0 frame to store background variables.
9034725985大约 2 年前
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>
latchkey大约 2 年前
I remember when it was released as a new feature (~1995).
TRiG_Ireland大约 2 年前
Amazing that these were forgotten!
rawbert大约 2 年前
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
mikece大约 2 年前
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 未加载
javajosh大约 2 年前
I use this trick to autorefresh the resource that I&#x27;m working on.
moltar大约 2 年前
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?
bryanrasmussen大约 2 年前
when they just learned about it was in 2020.
fergie大约 2 年前
Goddammit!
Uptrenda大约 2 年前
Noob learns basic HTML tag. The post.