Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<form name="form1" action="test.html" method="post">
<input type="text" name="daten">
<input type="submit" name="submit" value="submit">
</form>
<script type="text/javascript">
<!--
if(document.form1.daten.value) {
alert(document.form1.daten.value);
}
//-->
</script>
JavaScript cannot:
open and read files directly (except under specific circumstances, as detailed in Chapter 18, Building Web Applications with JavaScript).
create or edit files on the user's computer (except cookies, which are discussed in Chapter 8, Working with Cookies).
read HTTP POST data.
read system settings, or any other data from the user's computer that is not made available through language or host objects (Host objects are things like window and screen, which are provided by the environment rather than the language itself.)
modify the value of a file input field.
alter a the display of a document that was loaded from a different domain.
close or modify the toolbars and other elements of a window that was not opened by script (i.e., the main browser window).
echo "var daten = \"" . $bereinigte_daten_aus_post . "\"";