what is the easiest way to communicate with a button click to node js
I just want to redirect to a page when the button is pressed. How Can I do that?
Here is my Html code:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="app.js"></script>
</head>
<body>
<button onclick="pay()">Pay</button>
</body>
</html>