Often we need to use the RunJavaScript to click on buttons or links, which perform a specific action, and for this we use the widget id. However, in certain cases, we need to click something that is not on the screen, so the id is not found, so we can use ClassName. To do this, simply put the button, link ... a name in the Style Class, and when using RunJavaScript, instead of calling the id by the id, call by the ClassName placed in the widget.
↧