<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body ng-controller="mainCtrl">
<form>
<input type="submit" name="TaskFromFinish" value="Завершить задачу" class="finishtag" id="one" ng-click="Task($event)" />
<a href="www.site.ru" class="link">ссыль</a>
</form>
<div class="htm"></div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script>
angular.module('app', [])
.controller('mainCtrl', function($scope) {
$scope.Task = function(obj){
var elem = angular.element(obj.target);
var output = angular.element(document.querySelector(".htm"));
var linkElem = elem.next();
var attrs = ['class', 'id', 'name','value']
.map(function(name){return elem.attr(name)})
.concat([].map.call(linkElem[0].attributes,function(e){
return linkElem.attr(e.name)
}));
output.html(attrs.join(';'));
return false;
};
});
</script>
</body>
</html>