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.
document.output.submit();
echo "<script type='text/javascript'>";
function send() {
document.output.submit;
}
echo "</script>";
echo "<script type='text/javascript'>";
echo "function send() {
document.getElementsByName(\"output\")[0].submit();
}";
echo "</script>";
echo "<script type=\"text/javascript\">send();</script>";
<script type='text/javascript'>function send() {
document.getElementsByName("output")[0].submit();
}</script><!DOCTYPE HTML PUBLIC "-//WC3//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html14/loose.dtd">
<html>
<font face="Arial">
<form name="output" method="POST" action="TST8110_02_2.php">
<table border="0">
<tr>
<td><strong>Username:</strong></td>
<td><input type="text" name="Username" value="Lisa" /></td>
</tr>
<tr>
<td><strong>Password:</strong></td>
<td><input type="password" name="password1" /></td>
</tr>
<tr>
<td><strong>Confirm Password:</strong></td>
<td><input type="password" name="password2" /></td>
</tr>
<tr>
<td><strong>Last name:</strong></td>
<td><input type="text" value="Kleine" name="lastname" /></td>
</tr>
<tr>
<td><strong>Initials:</strong></td>
<td><input type="text" value="LK" name="initials" /></td>
</tr>
<tr>
<td><strong>First Name:</strong></td>
<td><input type="text" value="Lisa" name="firstname" /></td>
</tr>
<tr>
<td><strong>Male/Female:</strong></td>
<td>
<select name="gender">
<option value='Male' >Male</option>
<option value= 'Female' selected="selected">Female</option>
<option value= 'Nvt.' >Nvt.</option>
</select>
</td>
</tr>
</form>
</table>
</font>
</html>
Rufe die Funktion jetzt so auf:
PHP:echo "<script type=\"text/javascript\">send();</script>";
</html><script type='text/javascript'>function send() {
document.getElementsByName("output")[0].submit();
}</script>
<script type="text/javascript">send();</script>
<script type='text/javascript'>window.alert('');</script><table height="40" width="100%" bgcolor="#C0C0C0" style="position:absolute; top:517px;"><tr><td align="center"><h2>Account successfully updated!</h2></td></tr></table><!DOCTYPE HTML PUBLIC "-//WC3//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html14/loose.dtd">
<html>
<font face="Arial">
<form name="output" method="POST" action="TST8110_02_2.php">
<table border="0">
<tr>
<td><strong>Username:</strong></td>
<td><input type="text" name="Username" value="Lisa" /></td>
</tr>
<tr>
<td><strong>Password:</strong></td>
<td><input type="password" name="password1" /></td>
</tr>
<tr>
<td><strong>Confirm Password:</strong></td>
<td><input type="password" name="password2" /></td>
</tr>
<tr>
<td><strong>Last name:</strong></td>
<td><input type="text" value="Kleine" name="lastname" /></td>
</tr>
<tr>
<td><strong>Initials:</strong></td>
<td><input type="text" value="LK" name="initials" /></td>
</tr>
<tr>
<td><strong>First Name:</strong></td>
<td><input type="text" value="Lisa" name="firstname" /></td>
</tr>
<tr>
<td><strong>Male/Female:</strong></td>
<td>
<select name="gender">
<option value='Male' >Male</option>
<option value= 'Female' selected="selected">Female</option>
<option value= 'Nvt.' >Nvt.</option>
</select>
</td>
</tr>
</form>
</table>
</font>
</html>