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.

Java Script Problem Fenster

Empfohlene Antworten

Veröffentlicht

Ich habe ein Java Script bei mir auf der Website

Dieses Script sorgt dafür, dass Informationen in kleinen Fenstern angezeigt werden.

In dem Moment, wo er das macht (wo er die Fenster aufruft), lädt er die Seite (auf der das Script sich befindet) neu.

Auf dieser ersten Seite funktioniert es wunderbar, aber wenn ich das Gleiche auf einer anderen Seite plaziere, und dann z.B. auf "Info" klicke", lädt er wieder die erste Seite und nicht die, auf der sich das Script zu dem Zeitpunkt befindet. Wo kann ich es ändern, dass er auch bei der neuen Seite bleibt?




[b]Oben im HEAD:[/b]


<script language="Javascript">


<!-- Begin

function wopen(url,breite,hoehe)

{

win = window.open(url,"Bild","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbar=0,resizable=0,left=0,top=0,width="+breite+",height="+hoehe);

win.focus()



}

// End -->

</script>



[b]Unten im Body:[/b]




 <p align="right"><font face="Arial" size="1" >Find here


     important information:</font><br>


    <font face="Arial" size="1">



      <a href="index.htm" onclick="wopen('info.htm',500,325)">Info</a>

    | <a href="index.htm" onclick="wopen('terms.htm',500,200)"> Disclaimer</a>

    | <a href="index.htm" onclick="wopen('contact.htm',200,60)">Contact</a>


    <br>




    © 2003 Name Vorname.


  All rights reserved.<br>



    </font></p>



Hi,

versuchs doch mal mit:

a href="javaScript:wopen('info.htm',500,325)"

Vielleicht hilft das :-)

Gruß Jule

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.