we can use `location.href`, no need for doc