Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFM Anchor link that links to a separate page

New Here ,
Dec 08, 2016 Dec 08, 2016

Hello,

I'm trying to use the same method that I would typically used to create a anchor text in ColdFusion that I would do using HTML. I knew to use ## in ColdFusion but the link pointing to the anchor is giving me a 404.

<a href="mylink"> Skip </a> -- This links returns a 404

<a name="##mylink"> </a>

How do I create an anchor link that will point to a particular section on a new page?

I'm trying to create a "Jump to Content" or "Skip Block Content" on my page and figured using an anchor link would be the best solution.

Thanks.

1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 08, 2016 Dec 08, 2016

It's the other way around. The # should be at the link: <a href="#mylink"> Skip </a>

That takes the clicker to:

<a name="mylink"> </a>

or to

<a id="mylink"> </a>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 08, 2016 Dec 08, 2016

Thanks for responding. I will give it a try.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 08, 2016 Dec 08, 2016

THANKS!!! It worked.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 10, 2016 Dec 10, 2016
LATEST

Please mark the correct answer. It will help someone else in future. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources