Using .href is preferred because location is object