Để lấy URL trang web hiện tại của trình duyệt, bạn cần lấy window.location.href
tài sản.
Nhập mã sau vào bảng điều khiển trình duyệt của bạn và nhấn enter:
var currentURL = window.location.href;
currentURL();

Để lấy URL trang web hiện tại của trình duyệt, bạn cần lấy window.location.href
tài sản.
Nhập mã sau vào bảng điều khiển trình duyệt của bạn và nhấn enter:
var currentURL = window.location.href;
currentURL();