I want to read data from an URL and write this values to a local file with javascript and Greasemonkey.
for example: my page :
<script>
function opens()
{
var x=document.getElementById('sval').value;
var y=document.getElementById('eval').value;
for(i=x;i<y;i++)
{
window.open('https://www.google.com/search?q=javascript');
}
}
</script>
Start<input type='text' id='sval' ></input>
<br>
End<input type='text' id='eval'></input>
<br>
<button onclick='opens()'>a</button>
so:
in Greasemonkey I want to get value of search and then write to c:\file.txt