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">
setTimeout("document.getElementById('beispiel').submit()",2000);
</script>
<script type="text/javascript">
<!--
setTimeout("document.beispiel.submit()",2000);
//-->
</script>
<html>
<head>
<script type="text/javascript">
setTimeout("document.getElementById('beispiel').submit()",2000);
</script>
</head>
<body>
<form id="beispiel" action="test.php">
<input type="text" name="X">
</form>
</body
<input type="hidden" name="Submit Name" value="X">
Ja, was willst du denn machen? Wenn der User was eingeben soll, dann ist ein hidden-Feld nicht hilfreich. Aber wozu soll ein Feld sein in das man nur 2Sek!!! etwas reinschreiben kann?Wie soll der Werd des hitten feldes dann sein?
Original von p-Logic
ersetze "int Time(5)" mal durch 5000 (= 5 sec)
<script language="javascript">
<!--
function weiter() {
window.location.href = "dawillichhin.html";
return
}
setTimeout(weiter, 5000);
// -->
</script>
Das muss irgendwo in den Text:
Noch <p id="feld">5</p> Sekunden.
Das ist das Javascript:
<script language="javascript">
<!--
function weiter() {
window.location.href = "index.html";
return
}
var i = 1;
function count() {
i++;
document.getElementById("feld").innerHTML = 6-i;
if( i <= 5) {
setTimeout(count, 1000);
} else {
weiter();
}
}
// -->
</script>
Und das muss noch in den Body:
<body OnLoad="setTimeout(count, 1000);">