# How to jump to anchor in HTML

**URL:** <https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419>\
**Category:** flash\
**Created:** [November 20, 2002, 9:01pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419 "2002-11-20T21:01:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tstefan](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@tstefan](https://forum.kirupa.com/u/tstefan)\
**Post date:** [November 20, 2002, 9:01pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/1 "2002-11-20T21:01:58Z")

</div>

This is a problem:

I want to have a flash movie on my web page, it will have some buttons with animations.  
Is there posiblle to jump somewhere in the same web page (anchor) if I press button in flash.  
How can I make button like that.  
☹ ☹

---

<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:** [November 20, 2002, 9:10pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/2 "2002-11-20T21:10:41Z")

</div>

Same way you would in HTML. Just put the code within a getURL tag.

---

<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:** [November 20, 2002, 9:30pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/3 "2002-11-20T21:30:56Z")

</div>

Thanks but I havent done that in HTML yet so please would you explane it to me.

---

<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:** [November 20, 2002, 9:34pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/4 "2002-11-20T21:34:49Z")

</div>

First create your anchor in the HTML page where you want to jump to.

```php
<A NAME="jumpHere"></A>

```

Now use a URL to jump to that area…

```auto
on (release){
getURL("#jumpHere");
}

```

Untested of course, but I don’t see why it wouldn’t work, a getURL serves just as well as the A tag in HTML.

---

<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:** [November 20, 2002, 10:00pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/5 "2002-11-20T22:00:28Z")

</div>

I will try it, thanks.

---

<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:** [November 20, 2002, 10:01pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/6 "2002-11-20T22:01:22Z")

</div>

No problem 🙂

---

<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:** [November 20, 2002, 10:11pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/7 "2002-11-20T22:11:22Z")

</div>

It doesn’t work, it just reloads the page .  
Try ti.  
☹ ☹

---

<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:** [November 20, 2002, 10:12pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/8 "2002-11-20T22:12:57Z")

</div>

I think you have to use the full url…

in other words:

> **[Bookmark | AI-Powered Free Website Builder. Create Your Free Website!](https://www.bookmark.com/)**
>
> Create a free website with Bookmark AI Powered Free Website Builder. Choose your website type, your AI design assistant will create your website in 30 seconds.

I think…

Rev:elderly:

---

<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:** [November 20, 2002, 10:13pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/9 "2002-11-20T22:13:58Z")

</div>

That might be it, but Rev, when you do that, there is no slash before the # so it would be

> **[Bookmark | AI-Powered Free Website Builder. Create Your Free Website!](https://www.bookmark.com/)**
>
> Create a free website with Bookmark AI Powered Free Website Builder. Choose your website type, your AI design assistant will create your website in 30 seconds.

---

<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:** [November 20, 2002, 10:23pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/10 "2002-11-20T22:23:11Z")

</div>

Yes now it works but not in the way I need.  
When I klick on the published movie it opens the html page and jumps on the anchor.  
But if I open the page in which I have embeded the swf it only reloads the same page and dont jump to anchor, puf pant.  
:\*(

---

<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:** [November 20, 2002, 10:30pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/11 "2002-11-20T22:30:15Z")

</div>

Hmmmm, no clue then :-\

---

<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:** [November 20, 2002, 10:30pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/12 "2002-11-20T22:30:56Z")

</div>

thanks lostinbeta…

I am soooo lazy with my HTML… :evil: my bad

Rev:elderly:

---

<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 6, 2003, 9:21pm UTC](https://forum.kirupa.com/t/how-to-jump-to-anchor-in-html/8419/13 "2003-02-06T21:21:16Z")

</div>

```auto

getURL("java**script:location.href=location.pathname + \"#top\";void(0);");

```

top, or whatever your anchor name is
