# Linking down a page without an anchor

**URL:** <https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111>\
**Category:** Uncategorized\
**Created:** [April 2, 2006, 3:10am UTC](https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111 "2006-04-02T03:10:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![penguin](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@penguin](https://forum.kirupa.com/u/penguin)\
**Post date:** [April 2, 2006, 3:10am UTC](https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111/1 "2006-04-02T03:10:16Z")

</div>

is there anyway to link to a certain part of a page, say 1000 pixels down or is the only way to do this with an anchor.

---

<div class="post-metadata">

**Author:** ![Ankou](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ankou/32/1351_2.png) [@Ankou](https://forum.kirupa.com/u/Ankou)\
**Post date:** [April 2, 2006, 7:12pm UTC](https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111/2 "2006-04-02T19:12:26Z")

</div>

Yeah you’re pretty much stuck with using an anchor for that.

Of course it may be possible to use javascript to set the focus on an element that’s down the page 1000px. I’ve never tested that though so I’m not sure if it would work or not. If it worked, well that would be cool, but you’d also have a few other things to take into consideration.

---

<div class="post-metadata">

**Author:** ![mikkomikko](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mikkomikko](https://forum.kirupa.com/u/mikkomikko)\
**Post date:** [April 2, 2006, 7:35pm UTC](https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111/3 "2006-04-02T19:35:49Z")

</div>

There seems to be a way: [http://www.w3schools.com/htmldom/met\_win\_scrollto.asp](http://www.w3schools.com/htmldom/met_win_scrollto.asp)

---

<div class="post-metadata">

**Author:** ![penguin](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@penguin](https://forum.kirupa.com/u/penguin)\
**Post date:** [April 2, 2006, 8:23pm UTC](https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111/4 "2006-04-02T20:23:52Z")

</div>

I am linking to an external page thats not mine and want to link to cartain part way down that page, and there’s not and anchor there.

The java way looks interesting - but I dont think I can use java on someone elses page? Isnt it a security issue. Unless you can?

---

<div class="post-metadata">

**Author:** ![maurits](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@maurits](https://forum.kirupa.com/u/maurits)\
**Post date:** [April 2, 2006, 9:11pm UTC](https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111/5 "2006-04-02T21:11:39Z")

</div>

You may want to try using a div with display:absolute and put the linked page in an inline frame. Then, place the entire div (make the iframe as high as the page you wish to show) upwards, like so:

```auto
<body>
<div style="display:absolute; top: -1250px;">
   <iframe src="http://www.yourlinkedpage.com/" height="verybig" width="100%"></iframe>
</div>
</body>

```

The problem is that the user is unable to scroll through the page… It’s not a very elegant solution but it may get the job done.

Kind regards,  
Maurits

---

<div class="post-metadata">

**Author:** ![Ankou](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ankou/32/1351_2.png) [@Ankou](https://forum.kirupa.com/u/Ankou)\
**Post date:** [April 2, 2006, 9:16pm UTC](https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111/6 "2006-04-02T21:16:34Z")

</div>

> [@mikkomikko](#):
>
> There seems to be a way: [http://www.w3schools.com/htmldom/met\_win\_scrollto.asp](http://www.w3schools.com/htmldom/met_win_scrollto.asp)

Man I forgot all about that! 😃

---

<div class="post-metadata">

**Author:** ![mikkomikko](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mikkomikko](https://forum.kirupa.com/u/mikkomikko)\
**Post date:** [April 3, 2006, 8:18am UTC](https://forum.kirupa.com/t/linking-down-a-page-without-an-anchor/184111/7 "2006-04-03T08:18:54Z")

</div>

> The java way looks interesting - but I dont think I can use java on someone elses page? Isnt it a security issue. Unless you can?

I guess you can. Atleast if you use popups:

```auto
<html>
<head>
<script type="text/javascript">
function open_win()
{
var z = window.open("http://www.w3schools.com","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=600, height=600");
z.onload = function () {
this.scrollTo(100,500)
}
}
</script>
</head>

<body>
<form>
<input type="button" value="Open Window" onclick="open_win()">
</form>
</body>

</html>

```
