Interface JavaScriptExecutor

  • All Superinterfaces:
    ClientService, java.io.Serializable

    public interface JavaScriptExecutor
    extends ClientService
    The JavaScriptExecuter service allows executing JavaScript code on the client.
    Since:
    2.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute​(java.lang.String code)
      Evaluate the JavaScript code on the client If the code throws an error, it will crash the web client.
    • Method Detail

      • execute

        void execute​(java.lang.String code)
        Evaluate the JavaScript code on the client If the code throws an error, it will crash the web client. Accessing internals of the web client is strongly discouraged.
        Parameters:
        code - the JavaScript code to evaluate