Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How Do I Send A Link To A Webpage Deep In The Page


  • Please log in to reply
8 replies to this topic

#1 Martel

Martel

    Drfixup Human Internet Solutions


  • Members
  • 1,468 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:North Carolina U.S.A.
  • Local time:07:46 AM

Posted 08 March 2008 - 11:49 PM

I am wondering how to set a hyperlink that will take the reader to a pre destined place on a web page.

Like down on page three or maybe page fourty seven of a web page.

Am I making sense here?


For example if I wanted somebody to find the term Command Line Editing
It is located at the bottom of this web page.


Mod Edit: Topic moved to more appropriate forum~ TMacK

Edited by TMacK, 09 March 2008 - 01:41 PM.


BC AdBot (Login to Remove)

 


#2 Wysi Free

Wysi Free

  • Members
  • 20 posts
  • OFFLINE
  •  
  • Location:USA
  • Local time:08:46 AM

Posted 10 March 2008 - 08:54 PM

Yes. You are making sense and that is a good thing to do -- link to a precise place in a page.

I haven't done that yet but here are some links that will show you the way.
http://www.w3schools.com/html/html_links.asp
http://www.w3.org/TR/html401/struct/links.html
http://www.echoecho.com/htmllinks08.htm

It is one of those things on my list of things to learn. I haven't learned it yet but one day I want to send people to a specific term or place on the page. That would be an anchor.

Wysi
:thumbsup:

#3 Martel

Martel

    Drfixup Human Internet Solutions

  • Topic Starter

  • Members
  • 1,468 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:North Carolina U.S.A.
  • Local time:07:46 AM

Posted 10 March 2008 - 10:13 PM

Those are informative HTML tutorials
I am still missing something...

I understand the wording and linking but the anchoring is fuzzy

say you wanted to link to

Table 8-1
Operating System Commands
located at
http://www.drdos.com/dosdoc/usergeng/08ugch8.htm
<A><Table Border="3">
<caption><a name="530">
Table 8-1 <br>Operating System Commands<p>
</a>

I am either missing the big picture or the little picture.

Also, it is what you do when you have a long page with a table of contents and you link the contents to places in the document.

EDITED because my brain is about two minutes time delayed with my hands typing

Edited by Martel, 10 March 2008 - 10:16 PM.


#4 Noot

Noot

  • Members
  • 98 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:Central New York
  • Local time:08:46 AM

Posted 12 March 2008 - 10:22 AM

If you are asking whether or not you can link to an anchor on another page, you can. You just have to make sure all anchors are set up and you're linking to them correctly.

But to answer your question, yes, it is often used to in essence break up a very long page in certain sections to help viewers find the information they want quicker, without having to search the whole page for one certain section.

Now, to your anchors are fuzzy, what do you mean? I've used them often in some times I've done, so I can help explain it to you better if necessary. :thumbsup:
Posted Image

"I would feel more optimistic about a bright future for man if he spent less time proving
that he can outwit Nature and more time tasting her sweetness and respecting her seniority."
E. B. White (1899 - 1985)

#5 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,257 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:05:46 AM

Posted 12 March 2008 - 03:00 PM

Quick and Dirty Tutorial on Anchors:


<a name="section1"></a>

Placing the above code at the beginning of section 1 of your document will create an anchor to that exact spot.

<a href="#section1">Go To Section 1</a>

This code points to the anchor you just made. Notice the # symbol, that's a must.

So, let's say you wanted to create a table of contents for your page. You would do something like this:


Table of Contents:
<a href="#section1">Section 1</a>
<a href="#section2">Section 2</a>
<a href="#section3">Section 3</a>

<a name="section1"></a>Welcome To Section 1!
...
...
...
<a name="section2"></a>Welcome To Section 2!
...
...
...
<a name="section3"></a>Welcome To Section 3!


It's really easy once you nail it down.

Edited by Amazing Andrew, 12 March 2008 - 03:06 PM.


#6 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,257 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:05:46 AM

Posted 12 March 2008 - 03:03 PM

Also, for the specific page/section you mentioned in you post, the hyperlink to it would be: http://www.drdos.com/dosdoc/usergeng/08ugch8.htm#279

Note how the #279 is added to the end of the regular address.

#7 Martel

Martel

    Drfixup Human Internet Solutions

  • Topic Starter

  • Members
  • 1,468 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:North Carolina U.S.A.
  • Local time:07:46 AM

Posted 12 March 2008 - 08:14 PM

That is Amazing Andrew.

How did you know to use the 279

Oh wait
</a><a name="279">
<h3> Extended Command Line Editing</h3>

Edited by Martel, 12 March 2008 - 08:28 PM.


#8 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,257 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:05:46 AM

Posted 13 March 2008 - 03:17 PM

Exactly!

Here's a little trick to find the anchors in a page:

Create a new bookmark in your browser.
Paste this into the bookmark's location field (the URL part):

java script:(function(){var atags,i,name,a; anchs = document.anchors; for(i=0; i<anchs.length; ++i) { a = anchs[i]; name = a.name; a.appendChild(document.createTextNode(%22#%22 + name)); a.style.border = %221px solid%22; a.href = %22#%22 + name; } })();

Note: Remove the space between "java" and "script" in the above code. The forum software adds it for security purposes. Also, the code should all be on one line, but it wraps around here.

Now save the bookmark.

Now you can use that bookmark on any page and it will turn all the anchors on the page into visible links!

Edited by Amazing Andrew, 13 March 2008 - 03:20 PM.


#9 Martel

Martel

    Drfixup Human Internet Solutions

  • Topic Starter

  • Members
  • 1,468 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:North Carolina U.S.A.
  • Local time:07:46 AM

Posted 18 March 2008 - 09:05 PM

Thank you for the information.

Sorry it took so long for me to get back here.

I have been struggling with a hard drive trying to rescue files, ..to no avail. (arrg)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users