Get url for the page that opens in window.onunload

Is there a way to get the location for the page that will open in window.onunload.

Best regards, Keshav

+3
source share
2 answers

No! This will be a security issue. Imagine someone navigating from porn sites to a bank site. Another way (with the HTTP Referrer header) already hurts a little. Firefox allows you to suppress the referrer:

Type o: config in the address bar Find the referrer (sic) Set network.http.sendRefererHeader to 0

(Courtesy of http://cafe.elharo.com/privacy/privacy-tip-3-block-referer-headers-in-firefox/ )

+3

, ( ) ( @nalply ).

, , , , javascript. , URL- , . window.onunload .

, , ? , , , .

0

Source: https://habr.com/ru/post/1753314/


All Articles