title: Avoid leaving page confirmation when user clicks on hyperlinks
body: <p>This method brings the confirmation message when user leaves the current page:</p>
  
  <pre><code>window.addEventListener("beforeunload", function (e) {
                var confirmationMessage = "¿Seguro?";
  
                e.returnValue = confirmationMessage;     // Gecko, Trident, Chrome 34+
                return confirmationMessage;              // Gecko, WebKit, Chrome &lt;34
          });
  </code></pre>
  
  <p>This includes also clicking on links which is normal as that's also leaving a page.</p>
  
  <p>As I have already seen on other websites, what's the Javascript way to avoid this message to appear on hyperlink clicking?</p>