Hi anda_skoa,

Thank you for your fast reply. I don't know if the style of the JavaScript is good or bad, but it works. After searching over two hours for a solution I found it now. All I need is to wrap the complete script into a self running function:

Qt Code:
  1. (function(){ ... })();
To copy to clipboard, switch view to plain text mode 

I don't know why this is necessary because the script is nested in a <script>...</script>. When I insert the script manually in a local saved website it works without this.

However now it works