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.

Aus Popup-Fenster Link öffnen und Popup schließen

Empfohlene Antworten

Veröffentlicht

Hi!

Ich hab schon im Forum und bei SelfHTML gesucht, aber ich werd aus dem ganzen net schlau.

Wie kann ich mit Javascript ein PopUp-Fenster öffnen, in dem Links angezeigt werden. Wenn ich einen Link anklicke soll wiederrum ein Popup mit ner bestimmten Datei öffnen und das alte Popup automatisch schließen.

Bin um jede Hilfe dankbar.

Gruß

Lenzibaer

Wieso willst du eigentlich ein PopUp-Fenster im PopUp-Fenster öffnen und das alte schließen?

Du könntest doch einfach die neue site im alten Window darstellen ;)

hi,

also den link im neuen popup fenster zu öffnen solltest du so hinbekommen:

html:


<a href="datei.htm" target="FensterName">blabla</a>

javascript in externer datei:

function popup()

{

window.open("datei.htm",'FensterName','width=400,height=400');

}

so und wie du dass hinbekommst, dass sich das andere fenster schließt fällt mir aus dem stehgreif nicht ein, wenn ich nacher zeit hab schau ich nach.

mfg korea1

Original geschrieben von korea1

hi,

so und wie du dass hinbekommst, dass sich das andere fenster schließt fällt mir aus dem stehgreif nicht ein, wenn ich nacher zeit hab schau ich nach.

mfg korea1

window.close();

aber wieso machst nicht so wie oben erwähnt?!?

einfach den inhalt in das schon vorhandene Popup neu laden.

gruss

kills

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.