জাভাস্ক্রিপ্ট দিয়ে কারেন্ট URL পেতে, window.location.href প্রপার্টি ব্যবহার করুন -
উদাহরণ
<!DOCTYPE html> <html>
<body>
<h3>Get current URL</h3>
<p id="test"></p>
<script>
document.getElementById("test").innerHTML = "URL of the page: " + window.location.href;
</script>
</body>
</html>