Thread: Link to Middle of Page
Results 1 to 12 of 12
Related
-
Open an URL with form in the middle... Forum: HTML Forum
Replies: 0 -
Placing an image and caption in middle of div Forum: CSS Forum
Replies: 0 -
table in middle of my html page Forum: HTML Forum
Replies: 1 -
How do I change colors in the middle of a Webpage? Forum: HTML Forum
Replies: 3 -
Changing link colors in middle of page Forum: HTML Forum
Replies: 1
-
06-17-2004, 07:36 PM #1
Link to Middle of Page
How can I set up a link that will start in the middle of a page?
-
06-17-2004, 07:55 PM #2
Hi kimsmith and welcome to the forums,
is it a link from one part of a page on your site to another you are after or a page onLoad starting at a specific point?
krak_d
-
06-18-2004, 06:16 AM #3
It would be a link from another page. The top has some information about 1 dog and the bottom has information about another dog. I've got links set on 4 different sites linking back to this page. I was wondering if you can link to the middle of a page.
-
06-18-2004, 06:50 AM #4
Its not possible with html to link to the middle of a page on another site unless the anchors are in place first.
However XML linking specifications known as XLink and Xpointer expand on current html-based links. eg. you can link to a place inside a document even if the author didnt create an id.
A search on the subject may provide you with better info but im not sure how well supported it is.
To jump within one site you need the following.
The hyperlink text:
HTML Code:<a href="yourpage.html#yourNamedAnchor">TEXT HERE</a>
HTML Code:<a name="yourNamedAnchor"></a>
hope this helps.
krak_dLast edited by krak_d; 06-18-2004 at 06:57 AM.
-
06-18-2004, 06:50 AM #5
on the page you want opened in the middle you will need to insert the below code exactly at the position you would like the page opened at.
HTML Code:<a name="#callitwhatyouwant"></a>
HTML Code:<a href="http://www.yoursite.com/yourpage.html#callitwhatyouwant">link</a>
-
06-18-2004, 06:51 AM #6
-
06-18-2004, 06:58 AM #7bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Hi there kimsmith,
Try adding this code to the body tag of the page to which you are linking....
Code:onload="location.href= '#foo'"
Code:<a id="foo"></a>
-
06-18-2004, 07:00 AM #8bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Old coothead is last again
-
06-18-2004, 07:07 AM #9
Originally Posted by coothead
( I have no problem with that)
-
06-18-2004, 07:08 AM #10
That worked great. I had the a name right but I was adding the link wrong. Thanks for your help.
-
08-08-2010, 02:01 AM #11
Re: Link to Middle of Page
I am having a problem getting the code to work
I want link on page1 to open at specific spot on page2
On line 468 in page1
I wrote: <a href="http://mysite/mypage.html#identifier">text</a>
On line 367 of page2
I wrote: <a name="#identifier"></a>
The link takes me to page2, but it doesn't open at specific spot
What am I doing wrong?
Thanks
-
08-08-2010, 03:26 AM #12bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Re: Link to Middle of Page
Hi there Geno_3245,
and warm welcome to these forums.
if you give us a link to the problematic site, we may possibly be able to assist you.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum