# IT:AD:Durandal.JS:HowTo:Conditional Anchor CLicks # * [[../|(UP)]] {{indexmenu>.#2|nsort tsort}} As per good UX design patterns, Buttons are good for Primary Actions. Anchors are better for Secondary Actions. If the Action is a Conditional Navigation, you need to perform logic before navigating to a destination, or cancelling the navigation and showing an error message. ## Process ## Go goToMyLink: function() { //decide what to do...then: location.assign('myLink.php'): }