Saved X
Google login
SignUp with Email
X

Get previous url javascript

theindreshverma ( Edited  Sep 29, 07:06 pm )
Login

Javascript document.referrer method

<button onclick="getPreUrl()">Get previous url</button>
<script>
function getPreUrl() {
    alert(document.referrer);
}
</script>

Sourcecode Tags

More Sourcecodes

More Sourcecodes