开发者

What should I put in the href when I prototype?

When protyping we often do empty anchors. A very common way to do this is to do something like:

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

But if the client clicks t开发者_运维百科his link, the page will scroll to the top. But if we leave out the href attribute, the link won't behave like a link.

I've see stuff like:

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

But it doesn't look right.

Any other ideas?


<a href="javascript:void(0);">Go here</a>

will do nothing when you click on it. i think the 'standard' is to just use a # though and tell the client that it's a prototype and so links will not function properly :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜