Skip to content

Comment on 535 ways to reload the page with JavaScriptparent

Comments

That's not completely true— location.replace() and location.assign() do slightly different things. But, yeah, this is basically 535 different ways to spell location = location.

And not even very interesting ones. window.window is window, so you can just go nuts with the chaining. So is window.self, window.top, window.frames... window.self.top.frames.location = frames.top.self.window.location? Now we're talkin'.

Yeah, not very exciting. Once you go down that road you pass by window['l' + 'ocation'] on the way to window['loc' + (''+![])[!![]+![]] + (''+!![])[-![]] + 'ion'] and so on. I would have completed it but it's 2:30 and I'm tired.

Aha, indexing the characters out of "false" and "true"... clever.

sorry to bother you sir but could you tell me what that is called and maybe where i find out more about it?

l33t searching skills, I couldn't find it. That's where I learned this technique.

It's called programming. You can learn about it by typing stuff into your computer and seeing what happens.

AboutSource Built by g1lg1l

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