if (parent.location.href!=location.href) {
 parent.location.href=location.href;
}