title: Add data-attribute and its value to link with pure javascript
body: <p>I have a javascript snippet that goes:</p>
  
  <pre><code>function(){
     location.href = '&lt;%= my_route %&gt;';
  }
  </code></pre>
  
  <p>It turns this into the html</p>
  
  <pre><code>&lt;a href="myroute"&gt;a certain text i have no problem here&lt;/a&gt;
  </code></pre>
  
  <p>I would like to add with javascript data-no-turbolink = true to the link so that i have in html</p>
  
  <pre><code>&lt;a href="myroute"  data-no-turbolink = true &gt;a certain text i have no problem here&lt;/a&gt;
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>function(){
     location.href = '&lt;%= my_route %&gt;' location.data-no-turbolink = true;
  }
  </code></pre>
  
  <p>but it does not work.</p>
  
  <p>How to do this ?</p>