ma perche' richiami il window.open per gestire l'ancoraggio?
devi aprire una nuova finestra?

prova cosi':
window.location.href='#ancora'