📜  如何在javascript代码示例中获取浏览器url

📅  最后修改于: 2022-03-11 15:03:05.298000             🧑  作者: Mango

代码示例2
function getURL() {
  alert("The URL of this page is: " + window.location.href);
}