Jquery, which is built into Splunk, could be used.
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CC8QFjAA&url=http%3A%2F%2Fapi.jquery.com%2Flive%2F&ei=WYr6Ud_LFIbvqwGh4IHADw&usg=AFQjCNHPnKvzKaTw54m1H-YHMmd8NEWjTQ&sig2=8AozBXoUQ8Ju-vsR2-q8Bw&bvm=bv.50165853,d.aWM
(the .live has been replaced with .on in the current version of Jquery, but Splunk is using version 1.6, so .live will work.
if (Splunk.util.getCurrentView() == 'your_view_name' ) {
$(".myButtonClass").live("click", function(event){
event.preventDefault();
var txt = $(this).text();
var url = $(this).url();
alert(txt);
alert(url);
});
}
... View more