title: Navigating to back from VisualForce page in SalesForce1
body: <p>I have created VisualForce page. I wrote a script code to navigate back. It's working as expected in desk top but not in Salesforce1 iPad application. In Salesforce1 screen is empty.</p>
  
  <p>Please find below code</p>
  
  <pre><code>if( (typeof sforce != 'undefined') &amp;&amp; (sforce != null) ) {
    window.history.back(-1) ;
  } else {
    window.location.href = '{!URLFOR($Action.Opportunity.view, Opportunity.Id)}';
  }
  </code></pre>
  
  <p>Thanks in advance</p>