General documentation / cheat sheets for various languages and services

DOM

DOM object examples, using Chrome v39.0

window.location

At https://chbrown.github.io/docs/dom.html:

{
  "ancestorOrigins": {
    "length": 0
  },
  "origin": "https://chbrown.github.io",
  "hash": "",
  "search": "",
  "pathname": "/docs/dom.html",
  "port": "",
  "hostname": "chbrown.github.io",
  "host": "chbrown.github.io",
  "protocol": "https:",
  "href": "https://chbrown.github.io/doasdsssssasldjaslkdjslkjdks/asdaslkasd/asdscs/dom.html"
}

At http://localhost:5000/admin/:

{
  "ancestorOrigins": {
    "length": 0
  },
  "origin": "http://localhost:5000",
  "hash": "",
  "search": "",
  "pathname": "/admin/",
  "port": "5000",
  "hostname": "localhost",
  "host": "localhost:5000",
  "protocol": "http:",
  "href": "https://chbrown.github.io/doasdsssssasldjaslkdjslkjdks/asdaslkasd/asdscs/dom.html"
  "href": "http://localhost:5000/admin/"
}