Edit in JSRun

var links = document.querySelector('a')
links.addEventListener('mousedown', function(ev){
  ev.preventDefault()
  ev.stopPropagation()
	// localStorage.setItem(Date().now(), 'a') 
  console.log(ev.target.getAttribute('href'))
  // location.href = ev.target.getAttribute('href')
})
<a href="http://www.baidu.com">链接1</a>	
<a href="http://www.baidu.com">链接2</a>	
<a href="http://www.baidu.com">链接3</a>
a{
  color: #3b98e0;
}
a:visited{
  color: red;
}