function savetxt(urlParam)
{
let stroka = urlParam;
var blob = new Blob([stroka], {type: "text/plain"});
var link = document.createElement("a");
link.setAttribute("href", URL.createObjectURL(blob));
link.setAttribute("download", "save.txt");
link.click();
console.log("save.txt saved")
}
function savetxt(urlParam)
{
let stroka = urlParam;
var blob = new Blob([stroka], {type: "text/plain"});
var link = document.createElement("a");
link.setAttribute("href", URL.createObjectURL(blob));
link.setAttribute("download", "save.txt");
link.click();
console.log("save.txt saved")
}
savetxt(location.origin)