Removing/Adding Querystring in Window.Location.Href using JQuery
<p>I am using JQuery and stuck with one issue and need your help and guidance.</p>

<p>I want to do below three points in my current <code>window.location.href</code>:</p>

<ol>
<li><p>I want to add <code>?mode=ssl</code>, if we don't have any querystring in my <code>window.location.href</code></p></li>
<li><p>I want to append <code>&amp;mode=ssl</code>, if there is any querystring in my <code>window.location.href</code></p></li>
<li><p>I want to remove <code>logout</code> querystring from <code>window.location.href</code>, if present,
and then add <code>mode=ssl</code> to <code>window.location</code>.</p></li>
</ol>
