title: Alert an array in javascript and make it copy/pasteable
body: <p>On JavaScript, I've got an array of multiple variables: <strong>archive</strong>. First, I would like the page to display this table by skipping rows at each value of the table. Second, I want the alert to be &quot;copiable&quot; by the user. I achieved the first part that looks like that.
  <a href="https://i.stack.imgur.com/7Xtfh.png" rel="nofollow noreferrer">https://i.stack.imgur.com/7Xtfh.png</a></p>
  <p>However, it appears that the line :
  <code>var archive = archive.join(&quot;\n&quot;)</code> blocks the copy feature of the alert.</p>
  <p>My question is : is there a way to skip a line between values in an array <strong>AND</strong> makes it copiable by the user. (all of this in an alert javascript function).</p>
  <p>Thanks in advance ! (if you need the code part of the <em>archive</em> array, let me know)</p>