title: VF standard cancel button either works on classic or Lightning Experience but not on both versions
body: <p>I have a visualforce page with save and cancel buttons and this form I’m opening in tab. Ideally what I would like to do is when I click on cancel should clear the form and close the newly opened window itself.</p>
  
  <pre><code>&lt;apex:commandButton value=“cancel” action="{!cancel}" oncomplete=“window.close();” /&gt;
  </code></pre>
  
  <p>This above statement working(window closing) fine in lightning experience but not on classic version.</p>
  
  <pre><code>&lt;apex:commandButton value=“cancel” action=“{!Mycancel}" oncomplete=“window.close();” /&gt;
  </code></pre>
  
  <p>In above statement, I’m writing custom cancel(basically redirecting) and it closes the window in classic but this does not work in Lightning Experience.</p>
  
  <p>I want a solution should work in classic as well as in Lightning Experience. Please help me out here.</p>