Get The Current Domain Of A Web Page

loading...
notes
  • "origin" is the proper word instead of "domain", but I never remember that

Reference

Location object MDN