Ahref Anchor links in URL?

TechBoyJK

Lifer
Oct 17, 2002
16,699
60
91
Hi Guys,

I have a script I'm working on, and on one page there are three different forms. When someone clicks to edit on of the forms, I'd like the page submission to go directly to that part of the page.

Basically, they submit form, it refreshes and updates, then doesn't just reload the page, but it takes them to where I have <A href="#section2"> or whatever.

I basically want to add to the URL in the action tag of the form somekind of tag that pulls the user down to 'section2'

Any ideas?
 

PhatoseAlpha

Platinum Member
Apr 10, 2005
2,131
21
81
Should just be a matter of giving the part you want to jump to an id, then appending # then the id to the URL.