ryan
Possible to click ancor link then on the following page activate slideDown of section the anchor link refers to and then have the page center on the anchor tag?
0 Answer(s)      a year and 11 months ago
Posted in : JavaScript Questions

Ok so the question might be a little confusing but here it is broken down:

I have a link with a hash tag at the end:

<a href="randomPage.stm#stuff">Click me!</a>

Now on the page the link leads to I have multiple div's that are hidden waiting to be clicked so they can use the jQuery slideDown() and slideUp() functions. Is there a way to have the div with the relevant anchor tag open up and have the page center on the anchor tag like it regularly would?

Kind of confusing I know, any help would be appreciated.

Advertisement
View Answers