How to stop redirected URL from being masked?

Since your html is loaded in a inner iframe, You should use

window.top.location = url

to load in the top frame.

Leave a Comment