title: string formatting an anchor which has to call a javascript function onclick(mvc)
body: <pre><code>   goog_snippet_vars = function(){
  var w = window;
  w.google_conversion_id ="xxxxx";
  w.google_conversion_label ="xxxxxx";
  w.google_conversion_value ="xxxxxx";
  },
  goog_report_conversion = function(url) {
  goog_snippet_vars();
  window.google_conversion_format = '3';
  window.google_is_call = true;
  var opt = new Object();
  opt.onload_callback = function() {
  if (typeof(url) != 'undefined') {window.location = url;}
  }
  var conv_handler = window['google_trackConversion'];
  if (typeof(conv_handler) == 'function') {conv_handler(opt);}
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I am dumping the above code in to a page(onload) using stringbuilder from server.
  and i am using string.format to generate html from server side to the telephone no displayed on the webpage , which on click have to call one of the functions in above script. I used the below code for that </p>
  
  <pre><code>string.Format("&lt;a href=\"tel:{0}\" onclick=\"Javascript: goog_report_conversion(tel{0}); return false;\"&gt;{0}&lt;/a&gt;", PhoneNumber));
  </code></pre>
  
  <p>everything is fine html is applying to the tele no. the issue is on click it is not hitting the function , its simply navigating to new page with url as href value.</p>
  
  <p>so please help me if any work around is there.....thanks...</p>