how to connect alert and document location in html

Solutions on MaxInterview for how to connect alert and document location in html by the best coders in the world