开发者

What does <a href="#">Click here</a> mean? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answere开发者_Python百科d in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

What does <a href="#">Click here</a> mean?


It means "Render a hyperlink that takes the visitor to the top of the page and label it with the, distinctly uninformative, text Click here"


<a  href="#Bookmark1" target="frame1">
  Link text that leads to Bookmark1 in the current document
</a>

<a  href="http://www.foo.com/index.html#Bookmark1" target="frame1">
  Link text that leads to Bookmark1 in index.html at www.foo.com
</a>

If no Bookmark is specified in the HREF statement, the browser will default to the top of the document.

From Hyperlink [A Href]


The # of the link Click here is link to the top of the current page. But these kind of # links are often also used for links that are generated by JavaScript. With modern JavaScript library like YUI and JQuery it is no longer needed to explicitly add an "onClick" attribute to the html, see for example the JQUery API: click.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜