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-Link soll auf Frame verweisen und Popup schliessen

Empfohlene Antworten

Hallo,

ich hab jetzt beinahe jeden Artikel hier durchgelesen, SelfHtml und gegoogelt. Aber alles passt irgendwie nicht so ganz und ich krieg es immernoch nicht hin.

Meine index.html, bestehend aus zwei Frames topFrame und mainFrame, öffnet automatisch ein Popup:


<script language="JavaScript"> 

<!--  

{window.open('popup.html','popup','toolbar=no,location=no,status=0,width=300,height=170').focus;}  

//-->  

</script>

Dieses Popup soll die Benutzer zu einer Umfrage auffordern. Es soll zwei Antwortmöglichkeiten geben: Einmal soll das Popup-Fenster beim Klick auf "Schliessen" geschlossen werden, was auch funktioniert und zum anderen soll der User beim Klick auf "zur Umfrage" auf das Umfrage-Formular umfrage.html geleitet werden.

Die umfrage.html soll in den mainFrame meiner schon geöffneten index.html geladen werden und das Popup-Fenster soll sich schliessen.

Kann mir da jemand weiterhelfen?

Ich hoffe, dass ich mich einigermassen verständlich ausgedrückt hab. :WD

Vielen Dank

sollte eigentlich so in richtung:

<input type="submit" onClick="window.opener.location.href='umfrage.html';">

gehen.

nicht getestet, aber das window.opener machts...

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.