how to remove a part of a url from a url using jquery?
<p>I have a javascript variable</p>

<pre><code>var url =  http://www.abc.it/it/security/security.aspx?security=pdfcompare&amp;../securitycomparepdf/default.aspx?SecurityTokenList=blab]2]0]blab$ALL|blab]2]0]blab$ALL|blab]2]0]blab$ALL;
</code></pre>

<p>I need to remove the part <code>"../securitycomparepdf/default.aspx?"</code> from it using jquery, so that the variable becomes </p>

<pre><code>http://www.abc.it/it/security/security.aspx?security=pdfcompare&amp;SecurityTokenList=blab]2]0]blab$ALL|blab]2]0]blab$ALL|blab]2]0]blab$ALL;
</code></pre>

<p>Can someone please suggest?</p>

<p>Thanks</p>
