How can I pass the "term" variable from the html site to the node.js?
My HTML Page : search.html
<html>
<body>
<div id="content">
<p>Name:</p>
<input id="begriff" type="name" name="" value="">
<button style="margin-top: 50px;" onclick="information()" >send</button>
</div>
<script type="text/javascript">
var term;
function information() {
term = document.getElementById("name").value;
}
</script>
</body>
</html>
My Node.JS : app.js I want to search with the 'term' variable for apps in the Playstore and give the information back to the html and print it there somewhere.
var gplay = require('google-play-scraper');
gplay.search({
term: "Html 'Term' variable",
num: 1,
fullDetail: false,
price: "free"
}).then(console.log, console.log);