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.

Empfohlene Antworten

Veröffentlicht

hallo, ich habe folgenden code für eine confirmbox

<a onclick="return confirm('Wollen Sie den Begriff wirklich löschen?')"

"href="scriptzumlöschenvonbegriff.pl">"
das funktioniert uach so wie ich will, d.h. wenn ich auf den link klick werd ich gefragt ob ich löschen will wenn ich ok klick dann wird der link ausgeführt wenn ich abbrechen drück passiert nichts...nun will ich eine leerzeile in der confirm box hab...da es momentan so aussieht Wollen Sie den Begriff wirklich löschen? [OK] [Abbrechen] es soll aber dann so aussehen: Wollen Sie den Begriff wirklich löschen? ID: 2 DE: hallo EN: hello [OK] [Abbrechen] nun hab ich folgendes versucht
<a onclick="return confirm('Wollen Sie den Begriff wirklich löschen?\n\n ID: $id DE: $de EN: $en')"

"href="scriptzumlöschenvonbegriff.pl">"

so wird aber ohne eine confim box anzuzegen gelöscht?? hat jemand eine idee warum? oder wie ich es mach das es so funktioniert wie ich mein?

hallo, an dem kann es nicht liegen...da ich es ohne die variablen also

<a onclick="return confirm('Wollen Sie den Begriff wirklich löschen?\n\n test')"

"href="scriptzumlöschenvonbegriff.pl">"

probiert habe und so auch nicht funktioniert hat!

hallo, nach einer stunde rumprobiern bin ich auf den fehler gekommen!

ich muss das eh schon escapte "\n" nochmals escapen also quasi "\\n"

Du hast da mindestens ein " zuviel im Code:

<a onclick="irgendwas hier" "href="scriptzumlöschenvonbegriff.pl">"
sollte eher so aussehen:
<a onclick="irgendwas hier" href="ziel hier">link</a>

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.