Top "Anchor" questions

An anchor (<a>...</a>) is a HTML element used to define the link between the current element (the anchor) and the destination (URI).

How do I run PHP code when a user clicks on a link?

I want to have a page run some PHP code when a user clicks on a link, without redirecting them. …

php javascript html hyperlink anchor
anchor jumping by using javascript

I have a question that will be found very often. The problem is that nowhere can be found an explicit …

javascript html function anchor href
Cross-reference (named anchor) in markdown

Is there markdown syntax for the equivalent of: Take me to <a href="#pookie">pookie</a> ... &…

html anchor markdown cross-reference
How to handle anchor hash linking in AngularJS

Do any of you know how to nicely handle anchor hash linking in AngularJS? I have the following markup for …

javascript angularjs anchor hashtag
How can I disable HREF if onclick is executed?

I have an anchor with both HREF and ONCLICK attributes set. If clicked and Javascript is enabled, I want it …

javascript html onclick anchor href
CSS: pure CSS scroll animation

I have been looking for a way to scroll down when clicking on a button that is located on top …

css scroll anchor transition
href overrides ng-click in Angular.js

When both, href and ng-click attributes are defined: <a href="#" ng-click="logout()">Sign out</a> the …

html angularjs anchor markup
Is it possible to make an HTML anchor tag not clickable/linkable using CSS?

For example if I have this: <a style="" href="page.html">page link</a> Is there …

html css anchor
How to get the anchor from the URL using jQuery?

I have a URL that is like: www.example.com/task1/1.3.html#a_1 How can I get the a_1 anchor …

javascript jquery url anchor
Fixed page header overlaps in-page anchors

If I have a non-scrolling header in an HTML page, fixed to the top, having a defined height: Is there …

html url anchor fragment