I want to know how top.location and self.location is compared. I mean on what basis are they compared?
Are they compared using their memory address or their references or something else? Basically, i want to know when (top.location == self.location
) will give true and when the comparison will give false?
I know all those stuff that says they are compared using their respective url and all that. But the thing is they are objects. And hence, it would be interesting to know how objects are compared?