DocumentインターフェースであるWindow.documentはWindowのプロパティの1つでもあり、window.documentと書いて使う。
加えて、documentはグローバルオブジェクトとしても使えるので、"window"を省略できる。
windowと違い、document自体は省略できない。(alert()みたいなのは不可。)
documentオブジェクト自身、title、URLをalertで連続表示。
こうすると、
document自身は、HTMLDocumentというオブジェクト。
document.titleはこのHTMLのタイトルなのでDocument#document_global。
document.URLはこのページのURLなのでhttp://bgstation0.com/Document.html。
で、最後に、
これが表示される。
Sample/js/Document/document_global/src/Document at master · bg1bgst333/Sample · GitHub