Using preventDefault with prompt
<p>I have a multi-select list that calls a function to open a prompt for each selected item in the list. It works fine but the Prevent Duplicate message is displayed in the prompt. Is there a way to prevent that? I found this <a href="http://jsfiddle.net/b3q666y2/1/" rel="nofollow">jsfiddle</a> that shows the problem.</p>

<p>The line loading my function is</p>

<pre><code>&lt;input type="submit" name="Edit Options" value="Edit Options" id="edit_options" onclick="javascript:return EditOptions();  return false;"&gt;
</code></pre>

<p>My function is the same as shown in the jsfiddle except that the list is read in to provide the prompts arguments.</p>