# HTML Anchor Links

**URL:** https://forum.kirupa.com/t/html-anchor-links/41766
**Category:** web dev
**Created:** [February 1, 2004, 8:08pm UTC](https://forum.kirupa.com/t/html-anchor-links/41766 "2004-02-01T20:08:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)
#### Post date: [February 1, 2004, 8:08pm UTC](https://forum.kirupa.com/t/html-anchor-links/41766/1 "2004-02-01T20:08:33Z")

</div>

Hello,

If I have a scrolling list of links in an iframe, and all the links target the parent document, and everytime the parent document is loaded, it reloads the iframe, is there a way I can use anchor links so if I have scrolled to the bottom of the list of links and click on the last link, when it reloads the parent document it will target that bottom link so the list doesn’t start from the top again? Basically I want to retain position in the IFrame after clicking a link.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 10, 2004, 4:11am UTC](https://forum.kirupa.com/t/html-anchor-links/41766/2 "2004-02-10T04:11:49Z")

</div>

do you have a web server that will allow you to do any server side scripting because I see no way to do what you want without it.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 10, 2004, 3:16pm UTC](https://forum.kirupa.com/t/html-anchor-links/41766/3 "2004-02-10T15:16:00Z")

</div>

yes i do

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 10, 2004, 4:17pm UTC](https://forum.kirupa.com/t/html-anchor-links/41766/4 "2004-02-10T16:17:53Z")

</div>

ASP or PHP?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 10, 2004, 5:52pm UTC](https://forum.kirupa.com/t/html-anchor-links/41766/5 "2004-02-10T17:52:23Z")

</div>

it could probably be done with javascript, but SS would be a lot easier. i think :h:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 10, 2004, 11:05pm UTC](https://forum.kirupa.com/t/html-anchor-links/41766/6 "2004-02-10T23:05:44Z")

</div>

> \*Originally posted by norie \*  
> \*\*it could probably be done with javascript, but SS would be a lot easier. i think :h: \*\*  
> It sounds like the main page that has the iframe in it is reloading. I don’t think CS side javascript would work because of the loss of state.
