Skip to content

Comment on Using pushState? Make sure your links are fineparent

Comments

Then don't use an <a> tag, and you can capture more types of events. :) But when a page uses a link, the browser should ensure that it behaves like a link, including the ability to determine whether that link opens in the same tab/window or a different tab/window.

Or, more generally, you could request additional permissions from the browser; see the recent specifications for mouse capture and gamepad use.

AboutSource Built by g1lg1l

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