Fill textbox automatically in WebViewer

Hi, I want a JavaScript Code which can fill textbox automatically without typing. That means when webviewer startes the textbox want to be filled and button need to click automatically.

here is one solution How to fill out a form of a webpage and click a button using some JavaScript
other solutions you can find after doing a search here in the community

Taifun