Capturing a URL with a specific pattern associated with diferent buttons

Capturing a URL with a specific pattern associated with diferent buttons

Hi,

I want to capture a URL generating dynamically with a specific string inside associated with different buttons. For example I associated an AJAX url with a button whose url is having the pattern ****xyz=1**** . Associated an 'a' tag with another URL having a pattern ****xyz=2***. Depending on the type of element clicked .... I want to capture the url it is associated with it. For the 'a' tag it is pretty easy .... used  this.href but how to capture for the button that is firing ajax???

Nil