How to update the browser field

I use a class in which I load text and images into a browser field using html tags. Now I want to dynamically change the text, how to update the browser field once after loading the screen.

If I use the onclick tag in html to detect the click event, then how to use java scripts to execute some functions for this click event. I use document.getElementById to change the styles that I use in my broserfield. How to reload the browser field or java scripts to view updates.

How to use executeScript () to execute javascript, just add the line executeScript ("javascript: (function () {" + value + "}) ()"); The value is the line where I used document.getElementById to get the identifier of the element. He does not work.

Thank.

+3
source share
1 answer
BrowserField brawserField  = new BrowserField();
browserField.refresh();

use refresh method for refreshing the page.
0
source

Source: https://habr.com/ru/post/1730888/


All Articles