Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wieso wird der OnMouseMove Event nicht registriert?

Empfohlene Antworten

Veröffentlicht

Ich habe hier folgende Seite, deren Zweck ein Redirect nach einer Minute ist, wenn der Benutzer nichts tut. Der Redirect klappt ganz gut, nur dummerweise wird der Benutzer immer nach einer Minute zurückgeschickt, egal, ob er was tut oder nicht. Wo ist der Fehler?

Danke,

Grafzahl

<script language="JavaScript">

<!--

if(window.Event)

document.captureEvents(Event.MOUSEMOVE);

document.onmousemove=reset();

function redirect()

{

aktiv = window.setTimeout("location.replace('index.htm')",60000);

}

function reset()

{

window.clearTimeout(aktiv);

redirect();

}

// -->

</script>

<title>Testseite</title>

</head>

<body beimLaden=redirect()>

Blubb

  • Autor

ach so viele Formen des Redirects gibt es doch? :)

Aber ich glaube, du hast dich einmal verklickt. Du meintest wohl dies:

<A HREF="http://"http://developer.irt.org/script/1563.htm"" TARGET=_blank>How can I redirect to another page if there is no activity by the user for a certain amount of time?</A>

Vielen Dank für die Klasse Seite (*bookmark*)

Ich glaub, das können wir dann schließen.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.