Skip to content

Comment on 535 ways to reload the page with JavaScriptparent

Comments

How about "location++"?

See, there's another clever trick that actually does something interesting. Really, there's a whole class of toString solutions missing from this list... but I guess you have to stop at some point.

Sorry, what does this do? In Chrome it just redirects to /NaN when you put it in the console, am I missing something?

Yeah, it causes the browser to go to a new page. += with a string probably works too, but I don't have Chrome here to test with.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.