Link to Bookmark Disappears

I am creating an email blast for a client, and we want to land on a particular bookmark on a page. So I am linking to
However, when the page opens up, the beginning/top of the page is displayed and after a few moments the #Video2 disappears from the URL bar.

I thought this might have to do with, which has JavaScript that modifies the URL. But the same thing happens when I remove this code. It also happens in both FF and MSIE. It does not happen if I am already on the page, and I just add the #Video1 or #Video2 to the URL bar.

Why might this be happening? How can I link to these bookmarks properly?

Thank you.
Lev SeltzerAsked:
Who is Participating?
COBOLdinosaurConnect With a Mentor Commented:
Looks like this frame breaker code:

<script type="text/javascript">
var thisPage = "" + self.location.pathname +;
if (top.location != thisPage)
top.location = thisPage;

is causing the redirection.

You need to add self.location.hash to the string for the page name.

Lev SeltzerAuthor Commented:
thank you. I did not realize this code was there, and I decided to simply remove it. I would need to put in some extra logic before putting in self.location.hash, because most pages would NOT have a hash code.

Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.