js'den pek anlamam ama böyle birşey mi?

var pathname = window.location.href;
$('#yon').html(' <a href="'+pathname+'">tık</a> ');