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.

PopUp bei PopUp-Blocker

Empfohlene Antworten

Hallo,

ich habe ein kleines Problem. Also, ich habe eine Seite, die über eine andere aufgerufen wird - u d zwar mit folgendem Befehl:

F1 = window.open("LINK","width=800,height=600,left=0,top=0,dependent=no,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes");

F1.focus();

Funktioniert auch wunderbar. Nur, wenn der User einen PopUp-Blocker anktiviert hat, gibt es eine JavaScript-Fehlermeldung bei dem F1.focus(). Das Fenster erscheint aber trotzdem. Die Fehlermeldung ist zwar nicht sonderlich schlimm. Manche sehen das ja noch nicht einmal, wenn sie es nicht dementsprechend eingerichtet haben. Aber das ist natürlich etwas unschön...

Weiß jemand, wie ich vielleicht den Befehl F1.focus umgehen kann, wenn ein PopUp-Blocker aktiv ist? Dann kommt die Fehlemeldung ja auch nicht Und das Setzen des Focus ist auch nicht sooo wichtig.

Danke für eure Hilfe!!

anne

Weiß jemand, wie ich vielleicht den Befehl F1.focus umgehen kann, wenn ein PopUp-Blocker aktiv ist? Dann kommt die Fehlemeldung ja auch nicht Und das Setzen des Focus ist auch nicht sooo wichtig.


  if (F1)

  {

    F1.focus();

  }

Aber auch ohne das bringt er bei mir keine Fehlermeldung. Probiert mit FireFox und auch im IE6 (XP SP2) kommt nur ne Meldung, dass da was geblockt wurde...

Denke aber so würde es gehen...

notfalls mit nem try catch block versuchen

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.