HOME       >>       Programming

A Href Question


apurva

Okay i've a question!I'm building a site a educational site.Now on my index page there's link for event conducted,under which there will be monthly events.Now the details of this monthly events is supposed to be in event.html file. this even.html file will contain detail of all months event whose link is on index.html.So how in the index.html should i link the event.html so that if july event is clicked it should directly take the user to july event in event.html and not to january event.Thanks in advance folks

Notice from truefusion:
Moved to the HTML, XML etc.. forum

truefusion

I think i understand what you're trying to do. You would have to use the name attribute for the anchor elements.

Example (for event.html):

<a name="July">July</a>

Then when a person clicks on July in the index.html:
<a href="event.html#July">July</a>

It would scroll to where the anchor with the name attribute that has the value of "July" is.

apurva

wow that was quick! Thats exactly what i wanted! Thanks a lot.


TypoMage

Try looking for a website that could tell you about Html. So try looking for something on are top search engine Google. Tell me how that goes for you.



VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.