/    Sign up×
Community /Pin to ProfileBookmark

Back to top link not working in IE6

Whether I create a link that is simply href=”#”, or point it to a div via href=”#nameofdiv”, all I get is a [I]The page cannot be displayed[/I] error.

Seems to work in other browsers and newer versions of IE, but I’m stuck using IE6 as it’s on a work computer.

Any fixes?

Cheers.

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@WebProUkraineMay 24.2011 — can i see code?
Copy linkTweet thisAlerts:
@Haze1434authorMay 24.2011 — The code is pretty much as stated.

[code=html]<a href="#">Back to top</a>[/code]

... should work on it's own, and does in Firefox and IE7+.

I also tried...

[code=html]<div id="top">Stuff</div>

<a href="#top">Back to top</a>[/code]
Copy linkTweet thisAlerts:
@KorMay 24.2011 — the hash '#someid' should point to an anchor (an A element) not to a DIV
<i>
</i>&lt;a id="foo"&gt;&lt;/a&gt;
...
&lt;a href="#foo"&gt;go to the anchor "foo"&lt;/a&gt;

To bring a document to the top:
<i>
</i>&lt;a href="#"&gt;that brings the document to the top&lt;/a&gt;

That works in [I]all[/I] the browsers, IE6 included.
Copy linkTweet thisAlerts:
@WebProUkraineMay 24.2011 — In top you mast set ..

<a name="top">.....</a>

link must be

<a href="#top">Back to TOP</a>

Try
×

Success!

Help @Haze1434 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...