JSFiddle - React, Tailwind, and code Playground

by darkajax

HTML

<form id="search">
  <input type="text" />
  <button onclick="javascript:alert('hi');">Alert Hi</button>
  <button id='google_btn'>Go to Google</button>
</form>

JavaScript

document.getElementById('google_btn').click(function(){
   alert(1); 
});