The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Hyperlink to the middle of another page.
wolf
post Jun 21 2021, 05:54 AM
Post #1





Group: Members
Posts: 5
Joined: 16-November 20
Member No.: 27,638



Hello Again Folks,

It's hard to believe that I've had a website for 20 years and I'm having problems with what should be a relatively easy task.

Basically, I am trying to make a link to the middle of another web page.

I have made two links in this page https://www.1728.org/jump-to-middle.htm.
The first link which links to the middle of that page works fine.

The second link also located at https://www.1728.org/jump-to-middle.htm does go to another page https://www.1728.org/jump-to-middle2.htm but it only goes to the top of that page but not the middle.

How do I make that link go to the middle of that page?
Any help would be greatly appreciated.
Thank you.

This post has been edited by wolf: Jun 21 2021, 05:58 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Jun 21 2021, 06:25 AM
Post #2


Jocular coder
********

Group: Members
Posts: 2,334
Joined: 31-August 06
Member No.: 43



To make a link to website.com/page#position you need to put an id=position within the page. But on your "page2", instead of id=page2 you have id=#page2.
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
wolf
post Jun 21 2021, 10:10 PM
Post #3





Group: Members
Posts: 5
Joined: 16-November 20
Member No.: 27,638



QUOTE(Brian Chandler @ Jun 21 2021, 07:25 AM) *

To make a link to website.com/page#position you need to put an id=position within the page. But on your "page2", instead of id=page2 you have id=#page2.


Hello Brian.

SUCCESSFUL!!!

Thank you VERY much!
I have an HTML book and I looked at a great many websites, none of which stated what you just told me!!!
Thanks for stating what I needed to do in plain English!!

It's great to know that when anyone is having trouble with a webpage, Web Design Group will find the answer!!

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 31st July 2021 - 12:17 AM