PDA

View Full Version : going to parts of docuent


jeromepelletier
09-04-2006, 03:29 PM
how do you jump to a part of the document? such as, page loads, goes to the input field "sir" i know theres links you can click like bob.html?blah=blah but how do you get them to work ?

chreo
09-04-2006, 03:33 PM
I have no idea what you are talking about? Named anchors?
Please give more details.

jeromepelletier
09-04-2006, 05:41 PM
such as, page loads, it goes to the form "smith", click a link it goes to the document saying "your information"

googleit
09-04-2006, 05:55 PM
like that?

<p><a href="#test">#test</a></p>
<p><a name="test">test</a></p>
<p>test</p>

VIPStephan
09-04-2006, 06:04 PM
Please, please, folks, forget the old "named anchor" thing! That's so 20th century! :p

The name attribute is deprecated (hence, invalid) and replaced by the id attribute. The correct way to link within a document is to address any element with a certain ID:


<div id="skip">
...
code
code
code
...
<a href="#skip">skip to the div's opening tag</a>
</div>

jeromepelletier
09-07-2006, 12:15 PM
ah, i gotcha now, thanks:) ( i hope lol)