<!DOCTYPE html>
<html lang="ru">
<head>
<title>Компоненты</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<script type="text/javascript">
function gogo() {
var res = window.confirm('Вы действительно хотитте удалить?');
if (res) {
return true;
}
else {
return false;
}
}
</script>
</head>
<body>
<p><a href="http://ya.ru" onclick="return gogo();">link</a> </p>
</body>
</html>