function about() { self.location.href = '/index.htm#about'; } function works() { self.location.href = '/works.htm'; } function contact() { self.location.href = '/index.htm#contact'; }