Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<script type='text/javascript'>
<!--
function angeklickt(){
document.FORM.INPUTNAME.focus();
}
-->
</script>
<form action="#" method="POST">
<input type="text" name="send" size="90%" value="" onload="angeklickt()">
<input type="submit" value="send...">
</form>
<script type='text/javascript'>
<!--
document.form1.send.focus();
-->
</script>
<form action="#" name="form1" method="POST">
<input type="text" name="send" size="90%" value="">
<input type="submit" value="send...">
</form>
<body onload="Fokus">
function Fokus () {
document.form1.send.focus();
}
<script type='text/javascript'>
function Fokus () {
document.form1.send.focus();
}
</script>
</body>
<body onload="Fokus">
<form action="#" name="form1" method="POST">
<?php echo "<input type=\"hidden\" name=\"folder\" value=\"$folder\">"; ?>
<input type="text" name="send" size="90%" value="">
<input type="submit" value="send...">
</form>
<body onload="document.getElementById('feld').focus();">
<input type="text" id="feld" />
<link rel=stylesheet type="text/css" href="style.css">
<script type='text/javascript'>
<!--
function unten(){
document.getElementById('chat_box').scrollTop = document.getElementById('chat_box').scrollHeight - document.getElementById('chat_box').offsetHeight;
}
setInterval("unten()",9000);
-->
</script>
</head>
<body onload="unten()">
<div align="center">
<div class="main">
<table align="center"><tr><td>
<div id="chat_box" class="console" onload="unten()">
<?php include("#"); ?><br><br>
</div>
</body>
<body onload="document.getElementById('feld').focus();">
<form action="#" method="POST">
<?php echo "<input type=\"hidden\" name=\"folder\" value=\"$folder\">"; ?>
<input type="text" name="send" name="feld" size="90%" value="">
<input type="submit" value="send...">
</form>
<link rel=stylesheet type="text/css" href="style.css">
<script type='text/javascript'>
<!--
function unten(){
document.getElementById('chat_box').scrollTop = document.getElementById('chat_box').scrollHeight - document.getElementById('chat_box').offsetHeight;
}
setInterval("unten()",9000);
-->
</script>
</head>
<body onload="unten()">
<div align="center">
<div class="main">
<table align="center"><tr><td>
<div id="chat_box" class="console" onload="unten()">
<?php include("#"); ?><br><br>
</div>
</body>
<body onload="document.getElementById('feld').focus();">
<form action="#" method="POST">
<?php echo "<input type=\"hidden\" name=\"folder\" value=\"$folder\">"; ?>
<input type="text" name="send" name="feld" size="90%" value="">
<input type="submit" value="send...">
</form>
<script type="text/javascript">
function focus () {
document.getElementById('feld').focus();
}
</script>
<body onload="unten(); focus()">
<!--oder so vielleicht?-->
<body onload="unen(), focus()">
<div id="chat_box" class="console" onload="unten()">
Das wird so denk ich mal nicht funktionieren, weil du dann die Standardfunktion überschreiben würdest. Denke du musst sie anders nennen.Code:<script type="text/javascript"> function focus () { document.getElementById('feld').focus(); } </script>