Consider the following code:
GoTo Label2 ... [content here] ... More content
I suppose this will work:
window.location="#label2";