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.

javascript

Empfohlene Antworten

Veröffentlicht

ahoi,

ich hab hier ein kleines Problem mit Javascript. Ich glaub das ist ziemlich simpel, aber ich komm einfach nicht dahinter.

Wie kann ich mit dem Funktionsaufruf Variablen mitgeben die dann in der Funktion verarbeitet werden??

Ungefähr so:

javascript:funktion(variable);

<script>

function funktion() {

neuesFenster = window.open("seite.php3?id=variable", etc.... );

}

</script>

Ich weiß nicht wie ich das schreiben muss damit das Teil versteht das es sich um eine Variable handelt!!

Danke für eure Hilfe

woshty

Hi woshty

wenn ich mich nicht ganz irre, sollte das ganz einfach gehen, in dem du ..

window.open("site.php?xx="+variable, ... )

schreibst. Die muss dann natürlich vom Typ String sein.

Gruss

evoc

[Dieser Beitrag wurde von evoc am 22. Februar 2001 editiert.]

ahoi,

vielen dank für Deine Antwort, ich hab in der zwischenzeit die Lösung gefunden.

Das ganze muss allerdings in einfachen Anführungszeichen gesetzt werden, sonst kommt er durcheinander.

danke schön

woshty

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.