title: Whats the difference between implicit and explicit event in JavaScript function
body: <p>I have anchor tag in my html file and I am calling function on click of anchor tag</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function myFunction(text) {
    event.preventDefault();
    document.getElementById("demo").innerHTML = "text";
    window.open("www.amazon.com", '_blank')
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="javascript:void(0)" onclick="myFunction('test')"&gt;Click me&lt;/a&gt;
  &lt;p id="demo"&gt;&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is the example of what I am trying to do in my scenario. As I have already passed parameter to the function so cannot pass event as parameter in function. I am using implicit "event" of java script function. Its working fine but I have never used implicit event. </p>
  
  <p>I need to know whats the difference between implicit and explicit event in JavaScript function?
  I need to know in depth meaning of implicit event which is present in context of the function rather than the one which is passed to the function</p>