How do I get Javascript to tell me the website url.
For example if I have a page www.example.com/page.html
www.example.com/page.html
I want Javascript to tell me the site
Use alert(window.location.origin) for getting the url.