JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<body>
<input type = "submit" value = "previous" onClick = "prev()"/>
<input type = "submit" value = "next" onClick = "next()"/>
</body>
</html>
JavaScript
function default(){
var i=7;
j=15;
document.write(i+j);
}
function prev(){
document.write("The name is bond");
}
function next(){
document.write("Some message");
}