Can you launch a telnet window from Javascript?
<p>I currently have a link that launches a telnet link like this</p>

<pre><code>&lt;h:outputLink value="telnet://1.2.3.4"&gt;
    &lt;h:outputText value="1.2.3.4" /&gt;
&lt;/h:outputLink&gt;
</code></pre>

<p>All the users have their browsers configured correctly to launch some telnet client or other when they click this link.</p>

<p>I want to change the link, which currently appears on the page, to a link in a context menu (<code>rich:menuItem</code>). </p>

<p>Menu items apparently do not play well with JSF outputLinks (or any other kind of links). You need to implement it as the value of an <code>onclick</code> event:</p>

<pre><code>&lt;rich:menuItem value="View Details" onclick="window.location='http://ond.ba.ssa.gov" /&gt;
</code></pre>

<p>I tried implement the telnet this same way: </p>

<pre><code>&lt;rich:menuItem value="1.2.3.4" onclick="window.location='telnet://1.2.3.4'" /&gt;
</code></pre>

<p>But it doesn't work. Should it? Is there a simple way to do this?  If so, I haven't been able to find it.</p>

<p>Thanks in advance.</p>
