JSFiddle - React, Tailwind, and code Playground

HTML

<form id="form" onsubmit="return false;">
    <input type="text" id="account" />
    <input type="text" id="url" />
    <input type="submit" onclick="genorateCode();" />
</form>

<div id="code">

</div>

JavaScript

function genorateCode() {
		var account = document.getElementById("account");
    var url = document.getElementById("url");
    sendCode();
}
function sendCode() {
document.getElementById('code').innerHTML = '<a href="'+url+'">'+'<div class="button"><img src="https://s15.postimg.org/mfpd2ki8r/icon.png" width="16">@'+account+'</div></a>';
sendCode();
}