Opening custom protocol URL doesn't work consistently in Chrome
<p>The following code supposes to open a URL in an external app:</p>

<pre><code>var a = document.createElement('a');
a.href = 'myprotocol:jdoe@example.com;fromuser=John%20Doe;mode=audiovideo';

document.body.appendChild(a);
a.click();
</code></pre>

<p>When the app is not installed, on some PCs Chrome fails silently while on the others it displays this window:</p>

<p><a href="https://i.stack.imgur.com/wCTk9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wCTk9.png" alt="Launch"></a></p>

<p>Where is this behavior defined?</p>