محتوى هذه المقالة بسيط للغاية. سألخص بعض الأوامر المشتركة لـ JavaScript للحصول على المعلومات الحالية.
console.info ("document.url =" + document.url) ؛
console.info ("document.location.href =" + document.location.href) ؛
//console.info("document.base= " + document.base) ؛ // هذا خطأ!
console.info ("document.location =" + document.location) ؛
console.info ("self.location.href =" + self.location.href) ؛
console.info ("top.location.href =" + top.location.href) ؛
console.info ("location.hostname =" + location.hostName) ؛
console.info ("window.location.host =" + window.location.host) ؛
console.info ("window.location.pathName =" + window.location.pathName) ؛
هذا كل ما أتذكره في الوقت الحالي ، سأقوم بتحديثه لاحقًا^_^