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.

Webbrowser control und textarea

Empfohlene Antworten

Veröffentlicht

Hallo.

Wie kann ich eine Textarea ausfüllen?

Folgendes klappt ja nicht (weil Text zwischen <textarea> und </textarea> steht)

Set objSite = wbBrowser.Document.getElementsByTagName("textarea")

  For Each obj In objSite

    With obj

      If .Name = "data" Then .Value = "bla"

    End With

  Next obj

  Set obj = Nothing

.innerText?

Hallo.

Ja danke, aber ich weiß leider nicht wie man die Funktion anwendet. Und was wenn mehrere Textareas vorhanden sind? Gibt es eine .Name eigenschaft bei innerText? Und wie kann ich "schreiben" (aus dem Programm in die HTMLForm)

Ja danke, aber ich weiß leider nicht wie man die Funktion anwendet.
innerText ist keine Funktion, sondern ein Property, genau wie value.

Und was wenn mehrere Textareas vorhanden sind?
Dann ersetzt du den inneren Text von allen. Wenn du nur bestimmte willst, solltest vielleicht nach ID filtern. Oder, wenn du den Aufbau des Dokuments kennst, und dieser sich nicht ändert, mitzählen.

Gibt es eine .Name eigenschaft bei innerText?
Nein. innerText ist ein String, der hat keine Properties.

Welche Properties Textarea hat, findest du in der MSDN Library.

Und wie kann ich "schreiben" (aus dem Programm in die HTMLForm)
Indem du dem Property einen neuen Wert zuweist.

Jo. Danke

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.