title: Vaadin and js function
body: <p>I want to call js function by execute this string in vaadin code:</p>
  
  <pre><code>String js = "function returnURL{" +
                  "return(window.location.href.replace(/(\\d+)$/, function(str, p1, p2) {" +
                      "return((Number(p1) + 1) + p2);" +
                  "}));" +
              "}";
  </code></pre>
  
  <p>how to exacly call this function by this way :</p>
  
  <pre><code>Page.getCurrent().getJavaScript().execute(javascript function);
  </code></pre>