문제

How can i get the URL of the previous page in JavaScript?
I mean the value of this function:

history.back()

or this one :

history.go(-1)
도움이 되었습니까?

해결책

For privacy reasons, you will never be able to do that.

다른 팁

In JavaScript, you use the document.referrer property, which will give you the URL of the page where the user came from.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top