News for hackers. Stuff that matters.
Re:Unity merges with IronSource by Dylan16807 on Friday July 15, 2022 @01:16PM (#32110484)
> AJAX form submission with a redirect at the end, for example, is very common.

Why does that AJAX form need to pretend it's a link to a specific URL?

A button would have no problem, and a link that stays on the page would have no problem.

Re:Unity merges with IronSource by franga2000 on Saturday July 16, 2022 @12:46PM (#32119734)
The trick works by cancelling the link click event and redirecting somewhere else in JS. The only way to prevent that would be to not allow any redirects in JS, including buttons.