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.

Fenster per Link öffnen

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich möchte gerne per Link ein Fenster aufmachen. Ich habe dazu folgende schon programmiert.

<script language="JavaScript"> 
function legende ()
{
var win;
win=window.open ("legende.php3","Hallo","width=800,height=400,resizable=yes,scrollbars=yes,screenx=200,screeny=200");
return false;
}
</script>

<?PHP
echo "<a onClick='legende ()' href=\"antworten".$extension."?PHPSESSID=".session_id()."&themaid=$themaid\">Legende</a>";
?>
[/PHP]

Das Problem ist, dass die Seite antwort.php3 auch immer neu geladen wird. Wie kann ich das verhindern?

Frank

Das nennt sich PopUp und es lässt sich so öffnen:


<script language="JavaScript">
function openawindow()
{
window.open("test1.html", "newWin", "status=no,menubar=yes,scrollbars=yes,width=400,height=260")
}
[/PHP]

und als Link gibst du das hier an:

<a href="javascript:openawindows();"> Öffne hier das Fenster </a>

(javascript:openawindows(); << ob der strichpunkt da hin muss weiss ich gerade nicht auswendig !)

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.