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.

Popup-Fenster

Empfohlene Antworten

Veröffentlicht

wie kann man so ein Popup-Fenster mit HTML erstellen?

ich habe so was noch nie gemacht, aber würde das jetzt mal gebrauchen und weis leider nicht, wie das gehen soll!

<script>

function winopen(){

win = window.open("test1.html", "newWin", "toolbar=yes,location=yes,directories=no,status=no, menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=400,height=260")

startTime()

}

function startTime(){

var time= new Date();

hours= time.getHours();

mins= time.getMinutes();

secs= time.getSeconds();

closeTime=hours*3600+mins*60+secs;

closeTime+=8;

Timer();

}

function Timer(){

var time= new Date();

hours= time.getHours();

mins= time.getMinutes();

secs= time.getSeconds();

curTime=hours*3600+mins*60+secs

if (curTime>=closeTime){

if (win.closed == false){

win.close()}}

else{

window.setTimeout("Timer()",1000)}

}

</script>

</head>

<body onload="winopen()">

hier ein java script für ein popup fenster beim aufruf einer seite. bei frage melde dich bei mir.

Franky

danke für das Script!

gibt es sowas auch in HTML?

oder wird das eher in Java programmiert?

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.