title: Changing window parent url from child not changing complete url
body: <p>From my child window Im trying to refresh the parent window. I tried several js functions refresh or change the parent window url and non of them gave me what I needed.</p>
  
  <pre><code>alert(window.opener.location.href);  //gave null
  
  //all the functions bellow changed the url to 
  // http://mydomain/www.google.com
  window.opener.location.assign("www.google.com");
  window.opener.location.replace("www.google.com");
  window.opener.location.href = "www.google.com";
  window.opener.location = "www.google.com";
  </code></pre>
  
  <p>I also tried <code>parent.location.href</code> but didnt change the parent url.</p>
  
  <p>Is there a way I can set the parent url to the desired url? or just let it refresh the page ?Any ideas?</p>
  
  <p><strong>EDIT</strong>
  I cant post sample code because What Im doing is a bit complicated. Im using a salesforce button that calls a new window (asp.net page). I dont have much access to that page other than the .aspx page. Its a compiled version of a project we bought. In the .aspx page Im trying to call a js function because I dont have access to the code behind of that page. My js function is supposed to refresh the parent page once the user press on either (yes or no). </p>
  
  <pre><code>&lt;cc1:ImageButton ID="btnNo" runat="server" OnClick="btnNo_Click" 
  OnClientClick="pop()" Text="No" Width="40px" /&gt;
  
  
  
  &lt;script type="text/javascript" language="JavaScript"&gt;
      function pop(){
  
              window.opener.location.reload(true);
            //window.opener.location.href = "www.google.com";
  
      }
  
  &lt;/script&gt;
  </code></pre>