title: javascript link to url for metro buttons
body: <p>Im using this, <a href="http://jqmetro.codeplex.com/" rel="nofollow">http://jqmetro.codeplex.com/</a> but cant get it to work. Instead of alert message i would like go to page.</p>
  
  <p>Thank you,</p>
  
  <pre><code> $("#metroaqui").AddMetroDoubleButton('bt4', 'metro-azul', 'Style/Imagem/carta.png', '4', 'alert("this is a alert message");');
  </code></pre>
  
  <p>in the javascript:</p>
  
  <pre><code>(function ($) {
      $.fn.AddMetroSimpleButton = function (id, theme, imagem, texto, link) {
          var el = $(this);
          var html_code = "&lt;div";
          if (id != '') {
              html_code += " id='" + id + "'";
          }
          if (link != '') {
              html_code += " onclick='" + link + "'";
          }
          html_code += " class='metro-btn metro metrosingle " + theme + "'&gt;\r\n";
          html_code += "\t&lt;div class='imgsimple'&gt;&lt;img src='" + imagem + "' alt='" + texto + "' /&gt;&lt;/div&gt;\r\n";
          html_code += "\t&lt;span&gt;" + texto + "&lt;/span&gt;\r\n";
          html_code += "&lt;/div&gt;\r\n";
  
          el.append(html_code);
      };
  </code></pre>