JSFiddle - React, Tailwind, and code Playground

by bfelda

HTML

<html>
<head>
<style>
body {
  width:100px;
  font-family: sans-serif;
  font-size: 0.8em;
}
</style>
</head>
<body>
<input id="buttonid" onclick="onCreated()" type="button" value="try it"></input>
</body>



<script>
    
chrome.tabs.onCreated.addListener(onCreated());
function myFunction()
{
	alert("Hello World!");
}
    
function onCreated()
{
    var fld = document.getElementById("buttonid");
    if(fld==null)
    {
        alert("null");
    }
    else
    {
        alert("not null");
    }   
}
    </script>