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.

[HTML] Parameter ermitteln

Empfohlene Antworten

Veröffentlicht

Hi,

ich versuche den Parameter der meiner HTML-Seite hinter dem ? übergeben

wird in der Seite auszugeben. Den dazu passenden Befehl habe ich auch schon

in Self-HTML gefunden, nur leider funktioniert es nicht:


<html>
<head>
<body>
<font color="#008000"><font size="3">Die Dateien bitte in
das Verzeichnis </font>
<script language="javascript">
var = window.location.search;
alert(var);
Pfad = split(var,"?");
document.write('<font size="3">' + Pfad + <\/font>');
</script>
<font color="#008000"><font size="3"> herunterladen.</font></p>
</body>
</html>
[/PHP]

Könnt ihr mir helfen?

Gruß

Guybrush

Versuch's mal mit

var x = window.location.search;
alert(x);
[/PHP]

"var" leitet die Deklaration einer Variable ein, das heisst, Du kannst keinen Variablennamen nehmen, der "var" heisst, da dies ein geschützes Schlüsselwort ist.

Weiterhin habe ich gerade festgestellt, dass mein IE bei lokalen Seiten Probleme macht, wenn ich den Searchstring angebe. Richtig macht er's erst, wenn ich eine http-Verbindung zu der Seite aufbaue.

ICQ

Nachtrag: "Probleme macht" heisst, dass er mir sagt, dass die entsprechende Datei nicht gefunden wurde. Frage: Weiss wer, warum?

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.