Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<!DOCTYPE html>
<html>
<head>
<title>Text speichern</title>
<meta charset="ISO-8859-1" />
<script type="text/javascript">
function schreiben(){
var fso = new ActiveXObject("Scripting.FileSystemObject");
if(document.getElementById('inhalt').value == ""){
window.alert("Bitte geben Sie den Text an" +
", der gespeichert werden soll.");
return false;
}
else{
if(document.getElementById('dateiname').value == ""){
window.alert("Bitte geben Sie einen Dateinamen an.");
return false;
}
else{
var txtFile = fso.OpenTextFile(
document.getElementById('dateiname').value + ".txt", 8, true, 0);
txtFile.write(document.getElementById('inhalt').value);
txtFile.Close();
}
}
}
</script>
<style type="text/css">
body{
text-align: center;
padding-top: 7.5%;
}
</style>
</head>
<body onload="">
<h1>Text speichern</h1>
<form onsubmit="return schreiben()">
<textarea id="inhalt" rows="20" cols="100" ></textarea>
<br /><br />
<input id="dateiname" type="text" />
.txt
<input type="submit" value="Speichern" />
</form>
</body>
</html>