$("a").click(function(event) {
event.preventDefault();
var a = $(this).text();
alert(a);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<a href="https://www.google.com/">google</a>
<a href="https://https://ru.stackoverflow.com/">stack</a>
Переменная с текстом ссылки есть, но как можно поставить переменную "a"(текст ссылки) в title ?
this.title=
?