开发者

Javascript to Get Address Bar Value

Does anyone know how to (or if it is possible) to get the address bar value after a user tries to navigate to another page from my si开发者_开发问答te?

To be clear, I'm not looking for the value stored in window.location (since this is the page that the user will currently be on), but rather the site that the user is trying to navigate to.


This isn't possible.

You can of course capture the target URL of a link if the user changes page via hyperlinks in your page, but as far as typing a new URL in the address bar, no. Why, anyway?


No, what if they loaded www.mybankwithterriblesecurity.com/?password=password ?


No, that would be a gigantic security problem.

The traditional SO long answer would be "nooooooooooooooooooooooooooooooo".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜