JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8"/>
	
	<link rel="stylesheet" href="global.css">
	
	
</head>

<body>


<form >

	<input type="text" id="title" name="title">

<textarea id="blog_textarea" name="blog" placeholder="Your Text">
 
  </textarea>
   <br><button type="submit" id="post" name="submission" value="Submit">Post</button>
  <button id="clear_button" onclick="clearFun()" >Clear</button>
</form>


<p id="demo"></p>
<script>


	function clearFun() {
		
  
  var txt = prompt("To confirm, please type OK, or to stay type Cancel ");
  if (txt == "OK" || "ok") {
     document.getElementById("blog_textarea").value = "";
  } else {
    par_output = "Please type OK to confirm or Cancel";
  }
 
}
	</script>

</body>
</html>