So I'm trying to make a form for people to buy stuff in a game using in-game currency but I keep getting this error:
Uncaught RangeError: Maximum call stack size exceeded
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
at HTMLInputElement.onclick (index.html:28:75)
index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Buy item # - Payment Info</title>
<link rel="stylesheet" href="buy/style.css">
<script src="buy/index.js"></script>
</head>
<body>
<form>
<h1>Payment Info - Buy item #</h1>
<!-- unimportant stuff -->
<input type="submit" id="buybutton" value="Buy Now" onclick="onclick()"> <!-- error -->
</form>
</body>
</html>