<ul dir="auto">
<li>Electron version:</li>
</ul>
<h2 dir="auto">* Operating system: window 7</h2>
<p dir="auto">Found in webContents listening 'will - navigate' with 'event callback function event. The preventDefault ();'can't stop jumping events in the iframe.Example: in the iframe "&lt; a href =" github.com "&gt; test &lt; / a &gt;"</p>
<p dir="auto">It would be very useful to get events related to navigation:</p>
<ul dir="auto">
<li><code class="notranslate">will-navigate</code>: when the webview is about to navigate (url have been changed but no requests have been emited yet). It could eventually be cancelled with <code class="notranslate">event.preventDefault()</code>)</li>
<li><code class="notranslate">page-url-set</code>: like <code class="notranslate">page-title-set</code> but for url. It is different than <code class="notranslate">before-navigate</code> because it should also handle anchor changes and HTML5 url set without navigating (with <code class="notranslate">history.pushState</code> and <code class="notranslate">history.replaceState</code>)</li>
<li><code class="notranslate">did-navigate</code>: after the navigation has occured (i.e. when a new entry have been pushed to history and canGoBack/canGoForward/canGo... may have changed)</li>
</ul>