By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,843 Members | 2,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,843 IT Pros & Developers. It's quick & easy.

javascript anchor help

P: n/a
Does anyone have any javascript code that can navigate to an anchor in the
page load? I use location.href and it works in IE, but I can not get it to
work properly in FireFox. Any suggestions? Thanks for any advice.

Regards,
Chris
Oct 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Chris Kettenbach said the following on 10/19/2005 11:43 AM:
Does anyone have any javascript code that can navigate to an anchor in the
page load? I use location.href and it works in IE, but I can not get it to
work properly in FireFox. Any suggestions? Thanks for any advice.


Set the .hash property.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 19 '05 #2

P: n/a
Lee
Chris Kettenbach said:

Does anyone have any javascript code that can navigate to an anchor in the
page load? I use location.href and it works in IE, but I can not get it to
work properly in FireFox. Any suggestions? Thanks for any advice.

location.hash="#myAnchor";

Oct 19 '05 #3

P: n/a
Awesome guys!!! That was perfect!!!

"Randy Webb" <Hi************@aol.com> wrote in message
news:S-******************************@comcast.com...
Chris Kettenbach said the following on 10/19/2005 11:43 AM:
Does anyone have any javascript code that can navigate to an anchor in
the page load? I use location.href and it works in IE, but I can not get
it to work properly in FireFox. Any suggestions? Thanks for any advice.


Set the .hash property.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly

Oct 19 '05 #4

P: n/a
Awesome guys!!! That was perfect!!!
"Lee" <RE**************@cox.net> wrote in message
news:dj********@drn.newsguy.com...
Chris Kettenbach said:

Does anyone have any javascript code that can navigate to an anchor in the
page load? I use location.href and it works in IE, but I can not get it
to
work properly in FireFox. Any suggestions? Thanks for any advice.

location.hash="#myAnchor";

Oct 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.