Javascript alert not including var
<p>So if I type into a box:</p>

<p>open google.com</p>

<p>I want the javascript to recognize "open google.com" when I type it and I want it to alert that to me. But I don't know how to make it alert google.com without having "open" before it.</p>

<pre><code>var varopen = "open";
if (result.match(varopen)) {
    alert(result);
}
</code></pre>

<p>I want to display "result" without displaying "varopen".</p>

<p>Basically I want alert(result - varopen) to work but that doesn't work. PS I don't know anything about javascript.</p>
