come al solito:

getURL("pagina.htm#pippo");

a patto che in pagina.htm ci sia un segnalibro con nome pippo