read content in webbrowser input field

2019-06-08 20:16发布

问题:

Something I have been trying to do and still can't get done. Reading the information typed in a website input field and being able to copy that.

Is there a way I can read the ty

回答1:

try these articles about using TWebBrowser and delphi to read data from a web page.

  • How to read and write form elements
  • TWebBrowser OleObject and Document data


回答2:

Javascript

document.getElementById('input-field-id').value 

returns the contents of an input box. What are you trying to do?