Để lấy URL trang web hiện tại của trình duyệt, bạn cần lấy thuộc tính window.location.href.
Gõ mã sau vào console trình duyệt 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 thuộc tính window.location.href.
Gõ mã sau vào console trình duyệt và nhấn enter:
var currentURL = window.location.href; currentURL();