i need to display a message on change of the URL in the address bar, i.e., if the domain name of the URL changes ( for example: www.abc.com to www.def.com). how exactly can i do this using javascript? is there any way so that i can compare the domain names ? please help.