BleepingComputer.com: How Do I Send A Link To A Webpage Deep In The Page

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How Do I Send A Link To A Webpage Deep In The Page Like if I want to send them to a certain word in the page

#1 User is offline   Martel 

  • Bleeping Junior Member
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Study Hall Junior
  • Posts: 1,233
  • Joined: 05-January 07
  • Gender:Male
  • Location:North Carolina U.S.A. Japanese spoken here

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

This post has been edited by TMacK: 09 March 2008 - 01:41 PM

.
.
.
Posted Image

#2 User is offline   Wysi Free 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 20
  • Joined: 21-February 08
  • Location:USA

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 User is offline   Martel 

  • Bleeping Junior Member
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Study Hall Junior
  • Posts: 1,233
  • Joined: 05-January 07
  • Gender:Male
  • Location:North Carolina U.S.A. Japanese spoken here

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

This post has been edited by Martel: 10 March 2008 - 10:16 PM

.
.
.
Posted Image

#4 User is offline   Noot 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 98
  • Joined: 14-July 07
  • Gender:Female
  • Location:Central New York

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 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

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.

This post has been edited by Amazing Andrew: 12 March 2008 - 03:06 PM

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#6 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

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.
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#7 User is offline   Martel 

  • Bleeping Junior Member
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Study Hall Junior
  • Posts: 1,233
  • Joined: 05-January 07
  • Gender:Male
  • Location:North Carolina U.S.A. Japanese spoken here

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>

This post has been edited by Martel: 12 March 2008 - 08:28 PM

.
.
.
Posted Image

#8 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

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!

This post has been edited by Amazing Andrew: 13 March 2008 - 03:20 PM

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#9 User is offline   Martel 

  • Bleeping Junior Member
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Study Hall Junior
  • Posts: 1,233
  • Joined: 05-January 07
  • Gender:Male
  • Location:North Carolina U.S.A. Japanese spoken here

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)
.
.
.
Posted Image

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users