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

Hi Leute,

bin neu hier und fange grade an meine n eigenen webseite zu gestalten. Mit html,css und php klappt es ganz gut aber bei javascript noch nicht ganz.

Mein Button mit offnung eines neuen Fensters.

PHP-Code:

<form>
<input type="button" value="Klick" onclick="alert('Ihr Name ist:');">
</form>[/PHP]

Mein Problem:

1 - Ich würde gerne in dem fenster selbst weitere Inhalte anzeigen lassen.

2 - Wenn ich im Fenster auf den Button "OK" klicke, dann soll der user an einen Url weitergeleitet werden.

Ich weiß nicht so recht wie ich das anstellen soll und hoffe auf Tipps und Hilfe .

Viele Grüße, Thejackal

Hey,

danke für die Antwort. Ja sowas in etwa meine ich!

Es sind allerdings noch 2 Dinge die ich dort berücksichtigt werden sollen. Einmal das der Link in einem neuen Fenster geöffnet wird und das ich zusätzlich noch informationen hereinschreiben kann.

Weißt du da einen Lösung?

Viele Dank!

Schau mal dort.

SELFHTML: JavaScript / Objektreferenz / window


<html><head><title>Test</title>
<script type="text/javascript">
function FensterOeffnen (Adresse) {
MeinFenster = window.open(Adresse, "Zweitfenster", "width=300,height=200,scrollbars=yes");
MeinFenster.focus();
}
</script>
</head><body>
<a href="datei2.htm" onclick="FensterOeffnen(this.href); return false">Neues Fenster</a>
</body></html>
[/php]

Frank

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.