8

Anyone tell me...

what is wrong?

https://gist.github.com/cozyplanes/...

<!DOCTYPE html>
<html>
<body>

<input type="text" id="username" />
<input type="text" id="subtext"/>
<br>

<button type="button" id="create">Create</button>

</body>
</html>

<script type="text/javascript">
var username = document.getElementById("username").value;
var subtext = document.getElementById("subtext").value;
var url = "https://devbanner.center/generate/...;

document.getElementById("create").onclick = function () {
location.href = url;
};
</script>

Comments
Add Comment