title: Swal.fire when click text in Javascript (Sweetalert)
body: <p>I want to make appear a window promp with sweetalert (swal.fire) when i click a text. How do if statements and window prompt work on this library? After this point, you can appreciate that i'm new in this programming world.</p>
  <p>After that, i would like to asign a value to that input and verify if the answer is correct or not.</p>
  <p><code>&lt;td class=&quot;gases&quot; title=&quot;Hidrógeno&quot; id=&quot;H&quot;&gt;H&lt;/td&gt;</code> This is the element i want to click</p>
  <pre><code>Swal.fire({
  title:'¿Cuál es el elemento?',
  text: 'Introduce el nombre aquí',
  input: 'text',
  inputPlaceholder: 'Nombre', })
  </code></pre>
  <p>This is the prompt i want to appear when i cliked that element. When the button 'OK' is clicked, want to verify if the name introduced is correct or not...:</p>
  <pre><code>if (name === hidrógeno) {
       Swal.fire ('Correct!', 'You got the answer right!', 'success') }
  
  else {
       Swal.fire ('Incorrect...', 'You failed!', 'error') }
  </code></pre>