Solved

Link to Bookmark Disappears

Posted on 2014-01-29
2
482 Views
Last Modified: 2014-02-02
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 http://www.mesila.org/show.asp?PID=17#Video2
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 www.addthis.com, 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.
0
Comment
Question by:Lev Seltzer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39817881
Looks like this frame breaker code:

<script type="text/javascript">
var thisPage = "http://www.mesila.org" + self.location.pathname + self.location.search;
if (top.location != thisPage)
top.location = thisPage;
</script>

is causing the redirection.

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

Cd&
0
 

Author Closing Comment

by:Lev Seltzer
ID: 39827686
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.
0

Featured Post

Create Professional Looking Email Signatures

Create "Professional HTML Email Signatures" with ease.
7 Day Money Back Guarantee if not 100% Satisfied.
Affordable - Try it out for 7 Days Totally Risk Free.
Installers provided for over 45 Email clients.
Both Windows & MAC Supported.
Highly Recommended!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel to HTML macro with inserting lines 14 50
Javascript image manipulationcrop-image 7 41
HTML 5 Input Type Numeric 5 32
center text in div with CSS3 2 29
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question