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.
function send(form,confmsg,conf)
{if (conf){
if (confirm(confmsg))
{form.submit()
}}else form.submit();
}
<? session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="JavaScript" type="text/javascript" src="JS/forms.js"></script>
<title>Unbenanntes Dokument</title>
</head>
<body>
<? if ($_SESSION['loggedin'] && $_SESSION['user']['forumlogin']==1){?>
<form id="forumfrm" name="forumfrm" action="forum/login.php" method="post" target="_self" style="height=0.9em" >
<input name="username" type="hidden" value="<? $_SESSION['user']['forumusername']?>" />
<input name="password" type="hidden" value="<? $_SESSION['user']['forumpasswort']?>" />
<input type="button" name="senden1" value="Weiter zum Forum" onclick="send(forumfrm,'',0);"/>
</form><? }?>
<script language="JavaScript" type="text/javascript">
<? if ($_SESSION['loggedin']&&$_SESSION['user']['forumlogin']==1) {?>document.onload=send(forumfrm,'',0);<? }?>
</script>
</body>
</html>
// JavaScript Document
function send(form1,confmsg,conf)
var form = document.getElementbyId(form1);
{if (conf){
if (confirm(confmsg))
{form.submit()
}}else form.submit();
}
<? session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="JavaScript" type="text/javascript" src="JS/forms.js"></script>
<title>Unbenanntes Dokument</title>
</head>
<body>
<? if ($_SESSION['loggedin'] && $_SESSION['user']['forumlogin']==1){?>
<form id="forumfrm" name="forumfrm" action="http://kilga.net/forum/login.php?login" method="post" target="_self" style="height=0.9em" >
<input name="username" type="hidden" value="<? $_SESSION['user']['forumusername']?>" />
<input name="password" type="hidden" value="<? $_SESSION['user']['forumpasswort']?>" />
<input type="button" name="senden1" value="Weiter zum Forum" onclick="send('forumfrm','',0);"/>
</form><? }?>
<script language="JavaScript" type="text/javascript">
<? if ($_SESSION['loggedin']&&$_SESSION['user']['forumlogin']==1) {?>document.onload=send('forumfrm','',0);<? }?>
</script>
</body>
</html>