You can not make something else out of user input on system level. Assuming you want to let the user Bookmark a link (which is what Control + D
does), this could get you where you want:
function addBookmark(title,url){
if(window.sidebar){
window.sidebar.addPanel(title, url, "");
} else if(document.all){
window.external.AddFavorite(url, title);
} else if((window.opera && window.print) || window.chrome){
// Chrome & Opera do not have an add Favorite function on window
alert('Press Control+D to bookmark (Command+D for macs) after you click Ok');
// or something similar
}
}
Then you bind the click handler to call the function:
$('#yourLink').on('click', function(e) {
addBookmark($(this).attr('title'), $(this).attr('href'));
});