Skip to main content
Participant
December 8, 2016
Question

CFM Anchor link that links to a separate page

  • December 8, 2016
  • 1 reply
  • 1252 views

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.

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
December 8, 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>

iwannanoAuthor
Participant
December 8, 2016

Thanks for responding. I will give it a try.