What should I put in href when I prototype?

When prototyping, we often do empty bindings. A very common way to do this is to do something like:

<a href="#">Go here</a>

But if the customer clicks this link, the page will move up. But if we do not specify the href attribute, the link will not behave like a link.

I see things like:

<a href="javascript;">Go here</a>

But it doesn’t look right.

Any other ideas?

+3
source share
1 answer
<a href="javascript:void(0);">Go here</a>

will do nothing when you click on it. I think that the “standard” should just use # although telling the client that it is a prototype and therefore the links will not work properly :)

+4
source

Source: https://habr.com/ru/post/1747150/


All Articles