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.

Wie kann ich auf einen Button eine Zieladresse legen mT

Empfohlene Antworten

Veröffentlicht

So ist dasgemeint:

<input type="button" value="Update" onClick=window.location.reload()>

^

|

|

Das funzt einwandfrei, aber wie isses mit folgendem?

Wie geb ich ihm die Adresse mit?

<input type="button" value="Fire Chat" onClick= /***HTML - Adresse****/

&T* LE

Hi,

z.B. so

<script language="javascript">

function ziel(url){

location.href='url';

}

</script>

<input type="button" value="Fire Chat" onClick="ziel('test.html')">

Dann muesste es doch so auch gehen:

<input type="button" value="ButtonText" onClick=window.location.href = "http://www.test.de/test.html">

Ja,

das

<input type="button" value="ButtonText" onClick="window.location.href='http://www.test.de/test.html'">

geht auch.

(Ich mag Funktionen aber mehr... :D )

MfG

Hm, des geht ned! Er sagt dann immer Error on Page!

Ich hab das, was ich grad gepostet hab auch getestet. Hast du auf die Anführungsstriche geachtet ?

MfG

Ja klar! Waren drinnen!

Allerdings hab ich das nicht in ne normale HTML Seite geschrieben, sondern in so nem gehosteten Forum in die Kopfzeile.

Da ist schon ein Button, der reload macht. Der geht. Und als Textlink geht das dann auch, aber ein Button und ein Link schaut natuerlich bloed aus, darum wollte ich eben auch einen Button, aber das scheint wohl nicht zu gehen! :-/

&T* LE

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.