javascript - How does the page get the redirected url?
滿天的星座
滿天的星座 2017-07-03 11:42:39
0
1
1045

I recently encountered a problem, window.location.href='url', and then I found that the url redirected to another address. Can I prevent the execution of window.location.href? I only need to get the redirection. Then the parameters in the url.

滿天的星座
滿天的星座

reply all(1)
ringa_lee

Page switching will trigger window.onunload You can just stop it inside

At the same time, your new url is a value assigned in your code, there is no such thing as acquisition. You know your code itself, right?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template