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.

Problem mit location.href

Empfohlene Antworten

Veröffentlicht

Hi,

ich hab eine Seite erstellt, an die ich ein paar Paramter mit "Get" schicke. Nachdem ich die Parameter verarbeitet habe, möchte ich die Parameter aus der URL lösche und die gleiche Seite wieder aufrufen. Das mache ich mit location.href = "bla.php". Das Problem ist jedoch, dass die Seite zwar aufgerufen wird, aber nicht neu geladen. D.h.: Ich habe am Anfang der Seite ein alert("Test") eingebaut und wenn ich die Seite abschicke, wird dieses alert auch ausgelöst. Nachdem location.href müsste normalerweise noch ein alert kommen, da passiert aber nichts.

hmm, also ein reload machst du am besten so:

onClick="javascript:location.reload()"

vielleicht hilfts dir ?

Ein reload hilft mir nicht. Wie gesagt, ich will die Parameter nach der Abarbeitung aus der URL weg haben und die gleiche Seite wieder aufrufen und wenn ich ein reload mache, dann sind die Parameter wieder da.

dann vielleicht eine weiterleitung auf eine tmp-seite. dann sind die werte weg. in der tmp seite machst du dann ne automatische "rückleitung" auf die eigentliche seite.

ist nich die feine englische, aber das sollte gehen, oder?

Ist eine Idee, ja. Werde das mal ausprobieren. Aber gehen sollte es schon. Danke dir.

Vielleicht hat jemand weitere Ideen?

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.