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.

javascript: Textfeld direkt auslesen

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

mein Problem:

in meinem Intranet sind mehrere hundert Dokumente, die sich beim Aufruf über den Browser nur in den letzten 6 Zeichenfolgen unterscheiden.

Also:

Intranet/link000001.htm

Intranet/link000002.htm

...usw.

Bei der Eingabe in ein Textfeld hätte ich gerne einen Hyperlink der direkt aus dieser Eingabe generiert wird.

Ich möchte den Präfix "Intranet/link" vorgeben und die Informationen des Textfeldes direkt anhängen.

Da verschachtelte Formulare nach HTML nicht zulässig sind, bleibt nur Javascript?!?

Hat jemand eine Lösung für mich? (in HTML, PHP o. Javascript)

Danke

Osno

in den Header:


<script type=text/javascript>

function oeffneUrl() {

  window.location.href = 'link'+Ziel;

}

</script>
in den body:

<form name=formular method=get>

<input type=text name=url size=10>

<input type=submit value=aufrufen onclick=javascript:oeffneUrl()>

Ich würde dir dringend mal empfehlen, Selfhtml.org mal aufzusuchen...

und hier die Korrektur :)

<script type=text/javascript>
function oeffneUrl() {
window.location.href=formular.Ziel.value;
}
</script>[/PHP]

und

[PHP]<form name=formular method=post>
<input type=text name=Ziel size=10>
<input type=button value=aufrufen onclick=javascript:oeffneUrl()>

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.