title: How to deep-link in websites
body: <pre><code>&lt;a class="grey-text text-lighten-3" target="_blank" href="javascript:void(0);" onclick="document.write(yourOS())"&gt;Instagram&lt;/a&gt;
  
  
  
  function yourOS() {
  var ua = navigator.platform.toLowerCase();
  if (ua.indexOf("android") != -1) {
      document.write(.link("instagram://user?username=owendunnigan"));
  } else {
      .link("http://www.instagram.com/OwenDunnigan");
  }
  }
  </code></pre>
  
  <p>I am trying to deep link apps into my website, but I can't figure out how to have it go to regular old Instagram on the computer, but then go to the app on Android or iOS device. I know that the links work because I tried them out individually. </p>