I have this code to prompt for text input and then I want to run script.sh:
var x=prompt("Enter text:");
//this is where I'm lost
var xmlhttp=new XMLHttpRequest();
Is it possible to substitute x above as the value for $txt in script.sh which looks like this below and how please?
echo "Content-type: text/html"
<some xmlrpc command> "add text $txt"