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.

Pop-Up Frage

Empfohlene Antworten

Hi,

hab gar keine Raffe von Javascript , öffne mit folgenden Script nen Pop-Up:

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400');");

}

// End -->

</script>

</head>

<BODY onLoad="javascript:popUp('nachrichten.php')">

jetzt soll das POp-Up aber nur geöffnet werden wenn es noch nicht existiert, oder im selben Fenster in dem es bereits existierte, baer halt nicht immer wieder nen neues...

Vielen Dank für die Mühen

ein name-, id- oder target-Tag sollte da abhilfe schaffen...

(bin auch nicht der JavaScript-held)

function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400');");

}

da dein fenstername = id ist und id immer neu generiert wir, ist der fenstername auch immer anders -> also wird immer ein neues popup fenster geöffnet. probiers mal aus und mach id mal statisch, z.b. id = 'klaus'; dann sollte bei jedem aufruf das selbe fenster geoffnet werden.

var popup = window.open(URL, "klaus", 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400');

ich hoffe das hilft...

ciao sven

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.